Hello.
I'm trying to figure out how to make sure that visitors to a Web page containing a form cannot submit the form without filling in the necessary fields. Any suggestions are much appreciated.
Ivan
This is an extremely vague and general question. This involves both javascript as well as PHP (or any server-side language for that matter).
Since this is such a widely open-ended question I can only suggest to google undere the terms 'php server side validation' or something similiar and start there.
If you have more specific questions, then post them here.
Here I am checking, when the submit button is hit, if the fields var1 and var2 are empty. If they are then , using javascript, I am redirecting to a page using information is missing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.