Cheers for that Sheldon!!!
Sorry for the delayed reply - have been away from my PC for one brilliant week!
That looks like a nice bit of code, nice and clear! Unfortunately it didn't work as expected. Here's my modified version of the code:
Code:
<?php
$name = $_POST['field_name'];
$email = $_POST['field_email'];
$phone = $_POST['field_phone'];
$subject = $_POST['field_subject'];
$content = $_POST['field_content'];
$sender = "csjacks@hotmail.com";
$headers = "From: $email\n".
"Reply-to: $email\n".
"BCC: chris@artboxgraphics.com.au\n";
$date = date("r");
$message = "
You have received a support request from $name,\n
Email : $email\n
Phone : $phone\n
\n
$content\n\n\n
$date\n\n
___________________________________________________________________\n\n
Beam Marine Optics http://www.beammarineoptics.com\n\n";
$message = wordwrap($message, 70);
mail($sender, $subject, $message, $headers);
?>
The results I get in my email are as follows:
Code:
From : <TEXTFORMAT LEADING=\"2\">
Reply-To : <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"14\" COLOR=\"#4040FF\" LETTERSPACING=\"0\" KERNING=\"0\">chris@artboxgraphics.com.au</FONT></P></TEXTFORMAT>
Sent : Tuesday, 28 August 2007 9:34:52 AM
To : csjacks@hotmail.com
Subject : BMO Website Submission
| | | Inbox
You have received a support request from <TEXTFORMAT LEADING=\"2\"><P
ALIGN=\"LEFT\"><FONT FACE=\"Arial\" SIZE=\"14\" COLOR=\"#4040FF\"
LETTERSPACING=\"0\" KERNING=\"0\">Chris
Jacks</FONT></P></TEXTFORMAT>,
Email : <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT
FACE=\"Arial\" SIZE=\"14\" COLOR=\"#4040FF\" LETTERSPACING=\"0\"
KERNING=\"0\">chris@artboxgraphics.com.au</FONT></P></TEXTFORMAT>
Phone : <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT
FACE=\"Arial\" SIZE=\"14\" COLOR=\"#4040FF\" LETTERSPACING=\"0\"
KERNING=\"0\">0402823258</FONT></P></TEXTFORMAT>
<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Arial\"
SIZE=\"14\" COLOR=\"#4040FF\" LETTERSPACING=\"0\" KERNING=\"0\">My
message goes in here.</FONT></P></TEXTFORMAT>
Mon, 27 Aug 2007 18:34:52 -0500
___________________________________________________________________
Beam Marine Optics http://www.beammarineoptics.com
The code on my Button in Flash 8 is:
Code:
on (release) {
if (field_name eq "" or field_email eq "" or field_phone eq "" or field_content eq "") {
stop();
} else {
loadVariablesNum("beamform.php", 0, "POST");
gotoAndPlay(2);
}
}
Any ideas as to where I might be going wrong?
Note: The subject of my email is also hardwired in the Flash doc with:
Code:
field_subject = "BMO Website Submission";
...just in case you were wondering where that came from!
Thanks again!
Cheers,
Chris
Bookmarks