Hi
I’ve been using a Flash/PHP combination for several of my sites thats worked for me so far.
THe latest form I built however, sends more information then I asked form.
For example:
I fill out the form, name, email, phone number and message.
Hit submit, get feedback, get a nice message saying email sent. Works fine there.
I recieve the email, look at it, and I see text like:
This Message has been sent from: <TEXTFORMAT LEADING=“2”><P ALIGN=“LEFT”><FONT FACE=“Avian” SIZE=“14” COLOR="#000000" LETTERSPACING=“0” KERNING=“0”>Lem</FONT></P></TEXTFORMAT>
All I wanted was the name…
Any idea what might be the cause of this?
The code on the submit button is:
on (release) {
loadVariablesNum("emailform.php", "0", "POST");
gotoAndStop(2);
}
The PHP Script looks like:
<?
$ToEmail = "me@myemail.com";
##$ToName = "Lem";
$ToSubject = "Contact Form";
$EmailBody = "-Contact Form-
This Message has been sent from: $contact_name
Their Contact Phone Number: $contact_phone
E-mail: $contact_email
Their Message:
$contact_message
";
$EmailFooter="
This message was sent by: $contact_name from $REMOTE_ADDR";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$contact_email."");
Print "_root.pages.contact_page.formstatus=Your message has been sent.";
?>
I don’t see anything unusual about the input text fields, and I’m not sure what to do about fixing this.
I’m using Flash 8, but I published the Flash movie in Flash 6.
(Problem is the same when published as Flash 8 though)
Using Actionscript 2.0 in the publish settings.
And I’m using a rented server - http://www.powweb.com
Any suggestions would seriously help. I don’t know if this is a commonly occuring problem or not, I don’t know what key words to use to get an accurate search through the forums.
Thanks for at least reading this.
-Lem