Hello,
This is my first foray into php and I hope I follow all the rules of posting my question.
I have a simple code that will allow me to e-mail a resume to an address. The code seems to work just fine in Firefox, but when I try to load the page in IE, I get no response from clicking the “submit” button.
Any info would be greatly appreciated. Thank you in advance
Scott
The Code
<?
function checkOK($field)
{
if (eregi(“r”,$field) || eregi(“n”,$field)){
die(“Invalid Input!”);
}
}
$Name=$_POST[‘Name’];
checkOK($Name);
$Email=$_POST[‘Email’];
checkOK($Email);
$Address=$_POST[‘Address’];
checkOK($Address);
$Position=$_POST[‘Position’];
checkOK($Position);
$Skills=$_POST[‘Skills’];
checkOK($Skills);
$History=$_POST[‘History’];
checkOK($History);
$Other=$_POST[‘Other’];
checkOK($Other);
$to=”
$message=”$Name just submitted a resume.nn
Their e-mail address is: $Addressn
Their mailing address is: n$Emailnn
The position they are applying for is: n$Positionnn
They have the following skills: n$Skillsnn
This is their work history: n$Historynn
And these are their final comments: n$Othernn
” ;
if(mail($to,”Submitted resume”,$message,”From: $Namen”)) {
echo “Thank you for your resume. Please click the back button in your browser to return to the previous page.”;
} else {
echo “There was a problem sending the mail. Please check that you filled in the form correctly.”;
}
?>