Home / Sex og chat amsderdam / Validating contact form

Validating contact form Dating site that has live chat live cams and no credit card required

These inputs will be validated to ensure, for example, that the user has entered their name. This is because collectively the radio buttons should be treated as a group (the user should select either 0, or 1, or 2, etc.). Its value is presented as its label, and clicking on it will trigger the form submission.

To determine whether the form has been submitted by the user, either check the request method (an example follows in the next section) or check for the presence of a specific form control (usually the submit button).

So far, we have a largely HTML page which defines the form; the only PHP so far is to specify the form’s action value.

We need to add code which will pick up the form data and allow us to check it and create error messages if needed.

Also each browser has a slightly different default behaviour.

The simplest change you can make to your forms is to mark a text input field as 'required': This informs the (HTML5-aware) web browser that the field is to be considered mandatory.


  1. This tutorial emphasizes on creating a PHP contact form and applying PHP validations and mail function over it. PHP contact form with validation will allow you to.

  2. Do Contact form validation using jQuery. This blod post will guide you through example how to perform such validations.

Leave a Reply

Your email address will not be published. Required fields are marked *