Jump to content

form validation


alejandro52

Recommended Posts

I want in my form to validate on the fly(when the user enters the user name) to validate if the user name exists or not. How am i supposed to check if the field name is the same or not with a name in the database.Should i use ajax or javascript? is there any simple example on how to do that.

Link to comment
https://forums.phpfreaks.com/topic/214139-form-validation/
Share on other sites

ajax will do the job, google for a decent tutorial & make sure there is some jQuery functions flying about too; together they make an awesome tool for asynchronous $_POST checking. Truly awesome.

 

It makes it look like your not refreshing the page; and in essence your not, your refreshing the contents of a div/table cell directly from the database, there is no need for form tags this way, and as yet it seems to be very secure, a lot of work peeps use it and they remain cheerful

 

Rw

Link to comment
https://forums.phpfreaks.com/topic/214139-form-validation/#findComment-1114253
Share on other sites

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.