Hi,
I have a form that needs to check if the fields were completed and if not it echos a list of the fields that the user missed...
ie:
Name: _________
Email: ______
Age: _________
If they missed their age and email for example, the page would display an error and state that they missed the following fields:
Email
Age
and ask them to complete the missing fields below.
I noticed a post earlier that talked about using JS for this, this is not an option we wish to explore, we can use the
if(empty($variable_name)){...some code...}
what we are asking for is the logic to put this into place and have some code snippet check if each/any field is empty and if not add it to the list of missing fileds as in the example above