This is a discussion on Beginner PHP help, simple email form from flash not working within the PHP General forums, part of the PHP Programming Forums category; I am trying to make a simple email form in Flash. I have created the form and saved it as ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to make a simple email form in Flash. I have created the
form and saved it as a movie clip named Form. I embedded this clip in my flash based website. I then added a submit button with the simple script: on (release) { form.loadVariables("email.php", "POST"); } I then put a stop action on a seperate layer and then insert one more frame. On the movie clip "form" I added this script. The last frame I added had a thank you for submission message. onClipEvent (data) { _root.nextFrame(); } Now for my php file, I used this script in a file simply saved as email.php: <?php $sendTo = "**My Email**@**My Domain**.com"; $subject = "Subject"; $headers = "From: " . $_POST["name"] ." "<" . $_POST["email"] ..">\r\n"; $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-path: " . $_POST["email"]; $message = $_POST["field1"] . $_post["field2"]; mail($sendTo, $subject, $message, $headers); ?> When I upload the file to the server, the submit button does absolutely nothing. Not sure what I did wrong. |