Using post method, create “formValidation.php” page that contains a form asking the user to input his/her information su
Posted: Thu May 26, 2022 9:09 am
Using post method, create “formValidation.php” page that
contains a form asking the user to input his/her information such
as the name, gender, and email. The fields of name, email and
gender are obligatory to be filled, therefore a warning message
should be displayed beside the field if the user did not enter
his/her data. Two more warning messages must be displayed if the
user entered a wrong format of the email, and a wrong format of the
website.
PHP Form Validation Example required field Name: Name is required E-mail: * Email is required Website: none Invalid URL Comment: Gender: Female Male OOther * Gender is required Submit
PHP Form Validation Example *required field Name: Nour Moadad E-mail: [email protected] Website: none Invalid URL Comment: Gender: Female Male Other Submit Your Input is as follows: Your name: Nour Moadad Your email: [email protected] Your website: none Your comments: Your gender: female
contains a form asking the user to input his/her information such
as the name, gender, and email. The fields of name, email and
gender are obligatory to be filled, therefore a warning message
should be displayed beside the field if the user did not enter
his/her data. Two more warning messages must be displayed if the
user entered a wrong format of the email, and a wrong format of the
website.
PHP Form Validation Example required field Name: Name is required E-mail: * Email is required Website: none Invalid URL Comment: Gender: Female Male OOther * Gender is required Submit
PHP Form Validation Example *required field Name: Nour Moadad E-mail: [email protected] Website: none Invalid URL Comment: Gender: Female Male Other Submit Your Input is as follows: Your name: Nour Moadad Your email: [email protected] Your website: none Your comments: Your gender: female