The PHP file:
Expand|Select|Wrap|Line Numbers
- <?php
- $sendTo = "ssd@simplysaucedesigns.com";
- $last = $_POST['lastName'];
- $email = $_POST['email'];
- $message = $_POST['message'];
- $subject = 'SSD Inquiry from ' . ($_POST['firstName']);
- $headers = 'From: ' . $_POST["firstName"];
- $headers .= "<" . $email . ">\r\n";
- $headers .= "Reply-To: " . $email . "\r\n";
- $headers .= "Return-Path: " . $email;
- $message = $message;
- mail($sendTo, $subject, $message, $headers);
- ?>
the code for the submit button:
on (release) {
form.loadVariables("emailgo.php", "POST");
}
------------------------------------------------------------
the code for the movie clip (the form fields are placed in a movie clip named form)
onClipEvent(data){
_root.nextFrame();
}
-------------------------------------------------------------------------------------
the output in the email inbox:
the from field - <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Trebuchet MS\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">amir</FONT></P></TEXTFORMAT>
the same goes for the subject field and the message part. It does put out the variables but also puts out that formatting stuff as well and i cant get rid of it. any help would be great. thanks.