Results 1 to 3 of 3

Thread: check if email already in use

  1. #1
    Join Date
    Aug 2008
    Posts
    23
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default check if email already in use

    I have an input field
    <input type="text" name="email" id="email">
    an alert will popup if the user entered an email that is already in use/ exists in database.
    is it possible in javascript? could you please help me?

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    You cannot access a database with JavaScript. However, you could have the user submit it with PHP so that the website can see if the e-mail is equivalent to yet another, at which point you can use javascript to alert the user.

    -magicyte

  3. #3
    Join Date
    Aug 2008
    Posts
    23
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default

    how about ajax? I don't want to loose the value of the input fields which entered by the user.

Bookmarks

Posting Permissions

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