ngreenwood6 Posted September 30, 2008 Share Posted September 30, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/ Share on other sites More sharing options...
.josh Posted September 30, 2008 Share Posted September 30, 2008 google ajax. Doing something like that is actually a fairly common beginner ajax tutorial, so you should have no problem finding one. Quote Link to comment https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/#findComment-654076 Share on other sites More sharing options...
ngreenwood6 Posted September 30, 2008 Author Share Posted September 30, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/#findComment-654080 Share on other sites More sharing options...
.josh Posted September 30, 2008 Share Posted September 30, 2008 If that's all it showed in the tutorial, then that's not ajax. Google ajax form validation. Quote Link to comment https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/#findComment-654108 Share on other sites More sharing options...
ngreenwood6 Posted September 30, 2008 Author Share Posted September 30, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/#findComment-654148 Share on other sites More sharing options...
revraz Posted September 30, 2008 Share Posted September 30, 2008 Something here may help http://freeajaxscripts.net/tutorials.html Or check the Ajax forums here. Quote Link to comment https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/#findComment-654155 Share on other sites More sharing options...
ngreenwood6 Posted September 30, 2008 Author Share Posted September 30, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/126492-php-and-javascript-working-together/#findComment-654161 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.