hi have been following a tuturial on php form validation and here goes
index page
[php]
- Name *
- Password
- Password (confirm)
-
Favorite Music
- Rock
- Classical
- Reggaeton
- How did you hear about us? Choose... A friend Facebook Twitter
-
Request Type
- Question
- Comment
- Suggestion
- Comment
process page
[php]<?php
$myname = $_REQUEST[‘myname’];
$mypassword = $_REQUEST[‘mypassword’];
$mypasswordconf = $_REQUEST[‘mypasswordconf’];
if ($myname === ‘’) :
echo “
endif; // input field empty
if (strlen($mypassword) <=6):
echo “
endif; //password not long enough
if ($mypassword !== $mypasswordconf) :
echo “
endif; //passwords don’t match
?>[/php]
when i check that they match the passwords i mean
it returns the following error although i have checked that the passwords are identical
Sorry, the password must be at least six characters
this error i believe means that the password fiels differ
some help please
and thankyou