Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 2 of 2

Thread: Flash Based Email Form Using PHP---HELP!!!

  1. #1

    Flash Based Email Form Using PHP---HELP!!!

    Hello, so I've got a problem with the Flash Based Email Form Using PHP tutorial. I've done hours of searching through the forums to find the solution, and have not been able to adapt those solutions to help me yet.

    Right now, once I click "send" it just gives me a transferring message in the status bar of my browser, but it doesn't ever send an email. I know my host provides PHP. I set up a test PHP file with the following code:
          <?php phpinfo() ?>
    It gives me a page with the information concerning my host's PHP capabilities. So, that's not the problem.

    Here's the PHP code I have in a file called "quicknote.php":
    $to = "josh@joribo.com";
    $subject = "A Quick Note...";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "This message has been sent from your Contact Form\n\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Message: " . $_POST["content"] . "\r\n";
    mail($to, $subject, $message, $headers);
    Below, I've also attached a zip of my .FLA that sends the info to the PHP script.

    Please advise me what I need to change. Thanks in advance.
    Attached Files Attached Files

  2. #2


    So, I've been exploring this problem, and I found my solution in case anybody reads this and wants to know.

    My problem was not in the PHP code or the AS code, it was the placement of the contact.swf file. I had it in a folder, and that folder was on the same level as the main.swf file. So, I moved the contact.swf out of the folder on the same level as the main.swf, adjusted the loadMovie linkage. and it began sending emails perfectly. Except for the TEXTFORMAT error that I've seen others get as well.

    The solution for all the html tags in your email is to put this code in the "form" movieclip on an actions layer:

    myInstanceName.html = false;
    "myInstanceName" is for each text field you have in the "form." So, you have to have a line for each input text field you have.

    Hope this helps other people.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012