|
Hi everyone, hope you can help me.
On my latest flash website, I have a contact page with an online contact form. Code here:
on (rollOver) {
gotoAndPlay("on");
}
on (rollOut) {
gotoAndPlay("off");
}
on (rollOver) {
gotoAndPlay("on");
}
on (rollOut) {
gotoAndPlay("off");
}
on (release) {
if (!_parent.Name.length) {
_parent.Status = "Name Required";
} else {
if (!_parent.Email.length || _parent.Email.indexOf("@") == -1 || _parent.Email.indexOf(".") == -1) {
_parent.Status = "Valid Email Required";
} else {
if (!_parent.Message.length) {
_parent.Status = "Message Required";
} else {
_parent.Status = "Message Sent!!";
name = _parent.name;
email = _parent.email;
phone = _parent.phone;
message = _parent.message;
loadVariablesNum("Mail_Form.php",0,'POST');
_parent.gotoAndPlay("submitted");
}
}
}
}
The PHP script I have is as follows (4.4.6):
<?php
phpinfo();
$name = $HTTP_POST_VARS['name'];
$email = $HTTP_POST_VARS['email'];
$phone = $HTTP_POST_VARS['phone'];
$message = $HTTP_POST_VARS['message'];
$name = stripslashes($name);
$email = stripslashes($email);
$phone = stripslashes($phone);
$message = stripslashes($message);
$rec_email = 'myemail@hotmail.com';
$subject = "Web Contact Form";
$msg_body .= "ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ \n";
$msg_body .= "Name: $name\n";
$msg_body .= "Phone Number: $phone\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Message: $message\n";
$msg_body .= "_____________________________________________ \n";
$header_info = "From: $email";
$sender = 'webquery@mywebsite.co.uk';
mail($rec_email, $subject, $msg_body, $header_info, '-f'.$sender);
?>
I tested the page on several machines and it appeared to work fine. However, the guy says it does not work when he or his colleagues try it.
I think it might be because they are not filling the full form in - can anyone read the code and tell me if that is what could be causing the issue?
Any suggestions on how to fix it?
Many thanks
|