Jump to content

How to validate forms


Hoax

Recommended Posts

When you submit the form, on whatever page that form is submit to you will want to run your validation code. The form data will be in either the $_POST or the $_GET super global (depending on the method you use). You could also use some sort of Javascript/AJAX validation if you want to make validation a little more user friendly. However, always remember to validate on the PHP side because a user can disable javascript and bypass any javascript based validation.

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.