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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
alejandro52 Posted September 23, 2010 Author Share Posted September 23, 2010 ok thanks i will check it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.