Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    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.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •