alejandro52 Posted September 22, 2010 Share Posted September 22, 2010 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 More sharing options...
rwwd Posted September 22, 2010 Share Posted September 22, 2010 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 More sharing options...
alejandro52 Posted September 23, 2010 Author Share Posted September 23, 2010 ok thanks i will check it Link to comment https://forums.phpfreaks.com/topic/214139-form-validation/#findComment-1114393 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.