I am a php class that is validating input fields.. I want to use ajax ..


Regis.php // registration page

as my form action is self... so i am validating on the same page!!!

Should i create a separate page for AJAX response! as ajax check the echo's from any specific page!!

More if i want to get the response for two fields should i write the ajax two times?

Any hint or a standard way? Plz