AJAX email validation

3 replies
I need help making validation using ajax and php. I dont want to refresh the page and want to make validation without refreshing a page.

Thanks in advance for any help
#ajax #email #validation
  • Profile picture of the author mywebwork
    When you say "email validation" are you talking about just verifying the format of the e-mail address, or actually verifying the legitimacy of the address (i.e. does it really exist)?

    The first can be done with JavaScript alone, no AJAX required.

    It would also help to know if you are already using a JavaScript library such as JQuery or MooTools with your site.

    Bill
    {{ DiscussionBoard.errors[1456977].message }}
  • Profile picture of the author chaos69
    Originally Posted by techgirl View Post

    I need help making validation using ajax and php. I dont want to refresh the page and want to make validation without refreshing a page.

    Thanks in advance for any help
    If your using ajax/php then the email validation would be the same as it would be in any php script.

    When the call is submitting [through ajax] to the php script, you just need to echo back the error [or success] to the response div you specify on the call, all of which is made a hell of a lot easier when using a decent framework, such as
    prototype.....

    If you are having a specific problem getting this working, please be more specific - what are you using, what is the error/problem you are having etc.
    Signature
    Best Ways To Make Money Online

    Eight bytes walk into a bar. The bartender asks, “Can I get you anything?”
    “Yeah,” reply the bytes. “Make us a double.”
    {{ DiscussionBoard.errors[1458193].message }}
  • Profile picture of the author phptechie
    Hi,

    If you need email format validation ,then it can be done in Javascript & as its client-side validation , it will not reload the page.
    If you want to validate the email entered in the form and records in your database , then it would need Ajax to do without reloading the page.

    It would be better ,if you send the URL to the form , so that I can give you a solution.
    {{ DiscussionBoard.errors[1458396].message }}

Trending Topics