-
In need of URGENT help with contact form AS2
So, I've got a contact form which was created in Flash and a .php file to accompany it. When uploading it to test, it won't work. I don't know what I've done wrong
could someone please help?
-
Post your contact form FLA along with PHP
arkitx
-
email.fla
Thats the .fla file. It won't let me upload the php file but the code I've used is:
// read the variables form the string
$theName = $_REQUEST["theName"]; $theEmail = $_REQUEST["theEmail"]; $theMessage = $_REQUEST["theMessage"]; $theChoice = $_REQUEST["theChoice"];
<?PHP
$to = "ay_ozyigit@hotmail.co.uk";
$subject = "contact form test form FlashDen";
$message = "Name: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .= "\nIP Adress: " . $_SERVER['REMOTE_ADDR'];
$message .= "\nBrowser: " . $_SERVER['HTTP_USER_AGENT'];
$message .= "\n\nChoice: " . $theChoice;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
hope this is ok. Thank you soo much for helping
I've uploaded the file at www.aycreativity.co.uk and if you try it out, it automatically directs me to the 'message failed to send' page
:S
-
PHP Code:
<?PHP
// read the variables form the string
$theName = $_REQUEST["theName"]; $theEmail = $_REQUEST["theEmail"]; $theMessage = $_REQUEST["theMessage"]; $theChoice = $_REQUEST["theChoice"];
$to = "ay_ozyigit@hotmail.co.uk";
$subject = "contact form test form FlashDen";
$message = "Name: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .= "\nIP Adress: " . $_SERVER['REMOTE_ADDR'];
$message .= "\nBrowser: " . $_SERVER['HTTP_USER_AGENT'];
$message .= "\n\nChoice: " . $theChoice;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
arkitx
-
Thank you Artkitx, but I've just copied the coding you sent back and tried it again, it still comes up with 'message failed' page!
-
PHP Code:
<?PHP
// read the variables form the string
$theName = $_REQUEST["theName"];
$theEmail = $_REQUEST["theEmail"];
$theMessage = $_REQUEST["theMessage"];
$theChoice = $_REQUEST["theChoice"];
$to = "ay_ozyigit@hotmail.co.uk";
$subject = "contact form test form FlashDen";
$message = "Name: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .= "\nIP Adress: " . $_SERVER['REMOTE_ADDR'];
$message .= "\nBrowser: " . $_SERVER['HTTP_USER_AGENT'];
$message .= "\n\nChoice: " . $theChoice;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "&sentOk=" . $sentOk;
?>
arkitx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|