I am calling a php script from a flash file to send an email out. The php is running on a Linux server whilst the flash file will be based on a windows server.
The flash file communicates with the php file fine when it is running off line and when it is one a linux server, but fails when I put the flash file onto a windows server.
I'm using an absolute referance to the php file.
Below is a copy of the php file.
Please help I'm drasticly running out of time.
Thanks for an Help.
J
/////////////////
<?php
ini_set("always_populate_raw_post_data", true);
// Gets the POST Headers - the Flash variables
$firstname = $POST['firstname'] ;
$surnamename = $POST['surnamename'] ;
$email = $_POST['email'] ;
$friendfirstname = $POST['friendfirstname'] ;
$friendsurnamename = $POST['friendsurnamename'] ;
$friendemail = $_POST['friendemail'] ;
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if($_POST){
$to = "$friendemail";
$headers = "MIME-Version: 1.0\r \n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r \n";
$headers .= "From: \"$firstname\" \" \" \"$surnamename\" <$email>\r \n";
$message = "Hi $friendfirstname ";
mail($to, " test", $message, $headers);
}
?>
<html> <head><title>closing...</title><meta http-equiv="Content-Type" content="text/html; charset=macintosh"></head>
<body onLoad="window.close();">
</body>
</html>