A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: The Simple (PHP Form) Life

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    20

    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

  2. #2
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Removing any helpful previous posts I mistakenly contributed to these forums.

    See ya FK'ers
    Last edited by NTD; 10-19-2006 at 09:25 AM.

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Posts
    20
    Is that compatible with Flash MX or is MX 2004 required?

    Ain't there a tutorial that boils it down to the absolute basic funtion?

  4. #4
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Removing any helpful previous posts I mistakenly contributed to these forums.

    See ya FK'ers
    Last edited by NTD; 10-19-2006 at 09:26 AM.

  5. #5
    Junior Member
    Join Date
    Sep 2004
    Posts
    20
    Hey, I just wanted to say thanks because using your tutorial I finally managed to get things working. Well, the recheck doesn't work and I've simplified things a bit, but it's just what I needed, so - a big thank you from my side!

    Btw is there a simple "mailto:[email protected]" equivalent in Flash?

  6. #6
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Removing any helpful previous posts I mistakenly contributed to these forums.

    See ya FK'ers
    Last edited by NTD; 10-19-2006 at 09:26 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center