News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Create a Dynamic Username Validator with PHP, MySQL and jQuery
May 11, 2011 @ 12:45:36

On PHPBuilder.com there's a new article showing you how to create a dynamic username validator with the combination of PHP, MySQL and jQuery to do some of the front end work.

One of the easiest ways to streamline the registration process is by providing the user with real-time feedback regarding username availability. This is accomplished by monitoring the registration form's username field and immediately following the user's completion of this field, rather than waiting for the user to complete all fields and submit the form. Although a seemingly complex feature, it's actually easily accomplished thanks to the powerful jQuery library.

His scripts bases its checking on an "accounts" table that holds the username and password. The javascript (jQuery) handles the "blur" event on the username text field in the form and runs a check against a backend script to see if that username exists in the database (bound parameters used for helping to prevent SQL injections).

2 comments voice your opinion now!
username validation exists tutorial jquery mysql


blog comments powered by Disqus

Similar Posts

Richard Thomas' Blog: Solar Framework Shorts - Using Jquery with Solar

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 8)

ProDevTips.com: Ajax, ZF and Smarty feed reader - part 1

JoomlaBlogger.net: How to understand Joomla templates in five easy steps

Zend Developer Zone: Using Zend_Tool to start up your ZF Project


Community Events

Don't see your event here?
Let us know!


introduction interview framework php7 language video podcast series laravel example opinion version community release security api library unittest laravel5 voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework