ballouta Posted July 26, 2008 Share Posted July 26, 2008 Hello I saw before serveral validation forms samples, some of them display a nice message next to the field if it is invalid, some do not. what do you call the first type? i want to make google search to learn more and fix my registration form. if you advise a link please write it for me. Thank you Link to comment https://forums.phpfreaks.com/topic/116701-php-validation/ Share on other sites More sharing options...
JasonLewis Posted July 26, 2008 Share Posted July 26, 2008 So as you're writing or after you've written something it comes up next to it and says "The username you entered is unavailable." If that's what you're after, search Google for "AJAX". Link to comment https://forums.phpfreaks.com/topic/116701-php-validation/#findComment-600054 Share on other sites More sharing options...
ballouta Posted July 26, 2008 Author Share Posted July 26, 2008 yes it is after i write smthg in a field and press submit. is AJAX used with PHP or it is independent? Link to comment https://forums.phpfreaks.com/topic/116701-php-validation/#findComment-600056 Share on other sites More sharing options...
JasonLewis Posted July 26, 2008 Share Posted July 26, 2008 It allows JavaScript to communicate with PHP. So you can send the value of what they have written in the text box to a PHP script that will check the database and return true or false if it is in the database or not. Then you can display the appropriate message. Link to comment https://forums.phpfreaks.com/topic/116701-php-validation/#findComment-600060 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.