I have a form called Customer.php. Once the user enters his/her name , the data is sent to CustomerData.php. I want to know how can I check if the user entered the name or not and also the Customer.php form to display error asking the user to enter the name before the data is sent to CustomerData.php.
I'll appreciate any help.
Thanks.
How to check user input before submitting in php
Moderator: General Moderators
Re: How to check user input before submitting in php
Google javascript form verification. However you should always filter user fields in php because javascript can be bypassed by hackers.
Re: How to check user input before submitting in php
Hi, I a Data.php page in which the user enters the data. Once the data is entered , it is directed to another page validating.php. However if the user does not enter the data, I am sending the page back to Data.php using header. It works just fine. I want to know that how can I prompt the user to "Please Enter Data" on Data.php page and how can this be done.
Thanks.
Thanks.