Jump to content

Recommended Posts

I am trying to create a form that pulls data from my database. I want it to check the database on any change in text that is typed into a form. For example I want a text box that a user can enter their username. If the username is not correct it will say username is not correct or if it is it they can go on to the text box.  Any help is greatly appreciated. I have searched google but am not able to find it. I may not have the right keywords.

Link to comment
https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/
Share on other sites

I have tried to find a tutorial on ajax. I have googled it but I can only find stuff that deals with basic error handling. For example they only tell you how to program it so that if they dont enter a username it tells them they need to enter a username but it doesnt show how to connect to the database and check it without submitting the form.  Thanks for the reply

I have searched that as well. I have found some tutorials but do you know of any that are pretty basic and show a good example. It seems like all the tutorials are either way too in depth or they dont have a good example. I do not know any javascript and am fairly new to php but am trying to learn and understand both.

Thanks for the link, but for some reason the page has some weird characters on it. The link is http://freeajaxscripts.net/tutorials/Tutorials/ajax/view/Form_validation_with_AJAX%10PHP%10MySQL.html. I think that would be a good tutorial but the code is all split up and there are weird characters everywhere. Any links to a good tutorial.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.