Question: Create a form named loginform.php to ask for a username and a password. It should call a second form named logindisplay.php when a submit button
Create a form named loginform.php to ask for a username and a password. It should call a second form named logindisplay.php when a submit button is clicked. In the logindisplay.php display the username and password with appropriate labels.
Second Form:
Continuing on with the theme of your mock business, you will create a form that will ask for characteristics about an item that you sell. Name the file itemform.php. Use textfields for most of your fields and a submit button to activate the form handler. Use at least one other type of form element such as radio button, check box, select element.
The form handler should be in the same file, itemform.php.
Use validation to check the input for required field, numeric field and other validations. If there are errors, you should redisplay the form with valid input still intact but the invalid data cleared out. Be sure to give error messages to explain specific errors.
If the data is valid, give a message that indicates the form has been accepted and display the data with corresponding labels.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
