O'Reilly logo

jQuery 1.3 with PHP by Kae Verens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Remote validation

Sometimes you will need to verify that the information entered into a form is unique to the server's database, or some other server-side test that cannot easily be done on the client side.

An example is when you are asking someone for user registration details. The point of a user account is that it is a unique identifier. To be unique, it should have one field that is not shared by any other account. These days, it is very common to use the email address as that field. In the past, a username would have been more common, but there are good reasons why an email address is better.

To set this one up, copy the form.submit.php file from the previous example to a new example directory. This file will not need to change much. The rest ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required