AJAX email validation

by 3 replies
5
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
#programming #ajax #email #validation
  • 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
  • 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.
  • 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.

Next Topics on Trending Feed

  • 5

    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