Php (form verification) & lt; html & gt; & lt; head & gt; & lt; title & gt; PHP processing Form & lt; /title & gt; & lt;/head & gt; & lt; body & gt; & lt; h2 & gt; enter your personal information & lt;/h2 & gt; & lt; step 5 of fo php learning (form verification)
PHP processing formEnter personal information
Verification page:
";} Else if (strlen ($ name) <3 | strlen ($ name)> 10) {echo" name must be in the range of 3 to 10!
";} Else {echo" name: ". $ name ."
";}// Password verification if (empty ($ password) {echo" password cannot be blank
";} Else if (strlen ($ password) <3 | strlen ($ password)> 10) {echo" the password length must be between 3 and 10!
";} Else if (! Ereg ("[0-9a-zA-Z] +", $ password) {echo "the password must be a combination of numbers and characters!
";} Else {echo" password: ". $ password ."
";}// Verify the email address if (empty ($ email) {echo" the email address cannot be blank !!! ";} Else if (! Ereg ("^ [a-zA-Z0-9 _.] + @ ([a-zA-Z0-9 _] + .) + [a-zA-Z] {2, 3} $ ", $ email) {echo" incorrect email address format !!! ";} Else {echo" email address: ". $ email ."
";}?> Return