I'm trying to get a field to be required....
I have 2 pages....the form page and the action page.....where do I check for the validation?
Quite simply, all I would like to do is check to see if a variable has been populated, if it hasn't then the user can't go on to the action page.
Despite being relatively new to PHP, this doesn't seem like a tough concept, but nothing I try seems to help.
I've used the following commands with no success:
<?php
if ($name == 0) { echo ("Sorry this is a required field"); }
?>
someone please help!