Check for required fields in forms.
Posted: Thu Feb 07, 2008 8:41 pm
New here, tried to find this in search, and maybe I just don't know what to search for...
I'm creating a user sign up page (index.html), and i've written some code to check if required fields have been filled in.
When the user clicks "Submit" it sends them to another page (handler.php), and that does the check for the passwords and the required fields.
I would like for "Submit" to take them back to the same page, and highlight the fields that need to be filled in, if something is missing. If they filled everything in, take them to the next page (handler.php).
If anyone could provide a link to some scripting like this, that'd be great!
Thanks
I'm creating a user sign up page (index.html), and i've written some code to check if required fields have been filled in.
When the user clicks "Submit" it sends them to another page (handler.php), and that does the check for the passwords and the required fields.
I would like for "Submit" to take them back to the same page, and highlight the fields that need to be filled in, if something is missing. If they filled everything in, take them to the next page (handler.php).
If anyone could provide a link to some scripting like this, that'd be great!
Thanks