[mdlug] What language is this? PHP?
gib at juno.com
gib at juno.com
Thu Feb 5 20:27:35 EST 2009
A client has asked me to look at why a script doesn't work. I don't know what it is written in. Any clues? Here is the start of the file it is followed by HTML.
<script>
/*
function check_email(e)
{
ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm. at -_QWERTYUIOPASDFGHJKLZXCVBNM";
for(i=0; i < e.length ;i++)
{
if(ok.indexOf(e.charAt(i))<0)
{
return (false);
}
}
if (document.images)
{
re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
if (!e.match(re) && e.match(re_two))
{
return (-1);
}
}
}
*/
function specialreport()
{
if(document.special.pinjuryreport.checked==false && document.special.cdefensereport.checked==false && document.special.DUI.checked==false && document.special.Estates.checked==false && document.special.Hiring.checked==false)
{
alert("Select at least one.");
return false;
}
if(document.special.fname.value=="")
{
alert("Enter First Name.");
document.special.fname.focus();
return false ;
}
if(document.special.lname.value=="")
{
alert("Enter Last Name.");
document.special.lname.focus();
return false ;
}
if(document.special.email.value=="")
{
alert("Enter Email.");
document.special.email.focus();
return false;
}
if(!check_email(document.special.email.value))
{
alert("please enter your email address correctly");
document.special.email.focus();
return false;
}
if(document.special.phone.value=="")
{
alert("Enter Phone Number.");
document.special.phone.focus();
return false;
}
return true;
}
</script>
<html>
____________________________________________________________
Free information on finding a medical malpractice lawyer to file your case. Click now.
http://thirdpartyoffers.juno.com/TGL2131/fc/PnY6rbv5QtJ3wjDwcpx2Ue56xB1HknarGQ8A1QWLQRPe951eMAQ08/
More information about the mdlug
mailing list