CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   href onclick check if user name in database (http://www.codingforums.com/showthread.php?t=275144)

katmac 10-04-2012 01:34 PM

href onclick check if user name in database
 
Hi

On my page:

http://mandatorymarketinginc.com/web...-create-01.php

I would like the user to click on the "Check Availability" hyperlink and have it check my database to see if username is available or not, while remaining on this page and then display a message saying either "taken" or "available".

I am stumped on this.
Could someone pls point me in the right direction.

Thanks.

WolfShade 10-04-2012 02:08 PM

AJaX. Easier if you're using jQuery. But if not, you can manually write your xhr, submit in the background and alert the server response. Or have a hidden div appear with the display.


All times are GMT +1. The time now is 06:30 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.