PDA

View Full Version : PHP F04 Form Mail Problem


jimbo10
07-19-2004, 02:22 AM
i am using flash mx 04, and php 4.1.2
i used the tutorial to setup a php form but for some reason cant cant get the information from my form sent to my email address. when i press the submit button i recieve the email, but only get a blank email. it seems the php is working fine, but i cant receive any information passed from the flash form.

my php script:

<?php
mail("james@skiracer.info", $_GET["subject"], $_GET["message"], "From: PHPMailer\nReply-To: $_GET["from"]\nX-Mailer: PHP/" . phpversion());
?>

and flash script

subject = "NZUWG";
message = firstname.text + "\n" + lastname.text + "\n" + unicombobox.selectedItem.label + "\n" + dis.selectedData + "\n" + id.text;
from = email.text;
loadVariablesNum("mail.php4", 0, "POST");
gotoAndPlay(30);

i have all the text fields as named above, and have tried putting variable names in text fields to see if they will be passed without luck. i dont know why the text fields wont be passed to the php email???

any help plz???

j.mylne@talk21.
02-25-2005, 05:15 PM
I have the exact same problem:
I was using the tutorial from this site
http://www.actionscripts.org/tutorials.shtml
Tutorial 06 Send Mail Contact Form (PHP and Flash)
if you get an answer please let me know- j.mylne@talk21.com
ps sorry to not have an answer fro you but i'll keep looking and will post any positive results.
james

andehlu
02-25-2005, 07:23 PM
.....a few things to try.....name your mail script .php not .php4...... try changing your mail call in the php to...

<?php
mail("james@skiracer.info", $_GET["subject"], $_GET["message"]);
?>

....try tracing your variables in flash to verify...... that message variable may need to be eval()..... try echoing them in the php to make sure theyre getting to the php....