ajithnongmaithem
2009-03-23 05:12:28 UTC
//checking email is on database or not
if (document.student_1.email.value!="")
{
var objdoc;
var ab1=new Array();
var ab2=new Array();
var httpob;
httpob=null;
if (window.XMLHttpRequest)
{// code for IE7, Firefox, Opera, etc.
httpob=new xmlhttprequest();
}
else if (window.ActiveXObject)
{
try {
httpob = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try{
httpob = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){}
}
}
httpob.open("POST","checkemail.asp?email=" + email ,false);
httpob.send();
ab1=httpob.responseText;
ab2=ab1.split("^");
document.student_1.emailval.value=ab2[0];
if(ab2[1]=='found')
{ document.student_1.email.value=''; }
}
}