Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Server Side Validation
12-29-2013, 01:10 AM #1
- Join Date
- Jun 2013
- Calgary AB,Canada
- Thanked 1 Time in 1 Post
Server Side Validation
I am developing a form in HTML and it writes to MySQL database using PHP. I need to do the server side validation. How can I go about it ? Can anyone please give a sample example code.
Assume that the form accepts name and the city and on the server side (PHP) I want to check the MySQL if the record already exists, and if exists, I want to through the error message AND at the same time, I would like to keep contents of the name & the city on the form.
Is it possible to do it using AJAX ?
Please throw me some basic examples.
Thanks in advance,