|
-
The Simple (PHP Form) Life
I know. This is propably post number 1,000,000 that requests help for a simple php mail form from flash. I've red a (felt) 80 percent of them, I've red loads of tutorials and waisted hours and hours on creating a ridiculously simple mail form. Name, email, subject, message. From an .swf file that is loaded into my main .swf.
This is what I placed on the send button:
on (release) {
if (subject eq "" or message eq "" or name eq "" or email eq "") {
kontrolle.gotoAndStop(2);
} else {
loadVariables("mail.php3", 0, "POST");
gotoAndStop("Ausgabe");
}
}
This is the content of the PHP script:
<?php
mail("[email protected]", $name, $subject, $message, "From: PHPMailer\nReply-To: $email\nX-Mailer: PHP/" . phpversion());
?>
Well, at least this is the last version I've tried. (And yes, I did replace the my@email stuff with the real adress in the actual script )
When testing the form I get directed to the "Thank you" frame correctly, but I never receive the email. The status bar shows "Waiting for www.my.domain. What am I doing wrong? Where on my server needs the php script to be placed? Assuming I've 'targetet' it with only "mail.php3" ...on the top level? The cgi-bin folder? Does the PHP script need to be activated in some way? My provider (sais it) can handle php.
I'm desperate ...and apparently retarded. Please help!
Many thanks,
Nils
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|