Jump to content

How to do HTML validation at server side using PHP


phpuser2010

Recommended Posts

hi all

 

I have created a registration.html file. Now I want to validate it on a Apache server using PHP

 

What are the steps to validate it ?

 

I will upload the registration.html file as well as registration.php file

 

Please checkout any errors in them

 

Please  reply me  to [email protected]

 

[attachment deleted by admin]

I want to validate the data entered in the HTML. Suppose a user enters charecters instead of numbers at phone number then it has to display error message  and ask for reentering. This validation should be for every field, either leaving the Firstname, middlename or email id, any box without entering the values it should ask for reentering the values.

 

I want this validation to be done at client side  in PHP

I want this validation to be done at client side  in PHP

 

PHP is a server-side technology, therefore you can not use it to validate anything on the client side. If you want to perform client-side operations, you'll need to look into using javascript.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.