This form I am using that grabs variables from flash, works on most servers. but not the one I need it on?
<?php
if (empty($_REQUEST['action'])) {
echo "Nothing was submitted";
}
else {
$adminaddress = "Jigga@Jigga-Man.com";
$siteaddress = "Jigga-Man.com";
$sitename = "my portfolio site";
$date = date("m/d/Y H:i:s");
$ip = ''; $hostName = '';
if ($_SERVER['REMOTE_ADDR'] == "") {
$ip = "no ip";
}
else {
$ip = $_SERVER['REMOTE_ADDR'];
$hostName = getHostByAddr($_SERVER['REMOTE_ADDR']);
}
$fname = $_REQUEST['fname'];
$email = $_REQUEST['email'];
$comments = $_REQUEST['comments'];
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$myMessage = "
A visitor from your site has left the following information and/or question
Name: $fname
Email: $email
The visitor“s message:
------------------------------
$comments
Logged Info :
------------------------------
Using: $userAgent
Hostname: $hostName;
IP address: $ip
Date/Time: $date
";
$posterMessage = "
Hi $fname,
Thank you for contacting me through $sitename .
I have received your request/comment and will respond as soon as possible. If you need to contact me again after you have received my response, please reply to the original email message that I send you.
Again, thank you for writing to me. You will hear from me shortly.
Regards,
Jigga-Man
[url]www.Jigga-Man.com[/url] ";
mail($adminaddress, 'Info request', $myMessage, "FROM: $adminaddress");
if (mail($email, "Thank you for contacting me. $sitename",
$posterMessage, "FROM: $adminaddress")) {
$sendresult = "Thank you for contacting $siteaddress. You will
receive a confirmation email shortly.";
}
else {
$sendresult = "An error occured when trying to send mail";
}
echo "answer=" . rawurlencode($sendresult);
} // end if ($_REQUEST['action'])..else
?>
My site's PHPinfo is www.jigga-man.com/phpinfo.php PLEASE HELP ASAP!! thanks very much