Validating form with php

07-Jan-2016 04:14

In this document we have discussed Java Script Form Validation using a sample registration form.

As server side form validation is done on server, the submitted data is validated and cleaned by server and then it is used.

Client side form validation is done in user’s machine but server side form validation is done on server.

We cannot relay on data that are only validated in client side because a expert level user may change those data before submission to the server.

No one can modify those data without having access to the server.

validating form with php-79


In this example, you will need two files as below with correspondence names. These files are commented enough to understand what’s going on. If you want, you can use get method, just change method=”get” and replace $_POST with $_GET – that’s all.Following pictorial shows in which field, what validation we want to impose.

Free dating sites are great for those who don't have the money to join a site such as or … continue reading »

Read more

You can go through our member profiles to find others dealing with the same issues.… continue reading »

Read more