A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: Contact form

Threaded View

  1. #7
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    Ok, I've attached a movie and a php script. There's a couple things you need to do so listen carefully. First of all, you need to edit the php. Unzip the zip and open the php in NOTEPAD (very important). It's going to look like this...

    PHP Code:
    <?php
    $to 
    "[email protected]";
    $subject "Form";
    $body $_POST['Userinput'];
    if (
    mail($to$subject$body)) {
      echo 
    "&complete=Form sent!";
     } else {
      echo 
    "&complete=Sorry, can't send form at this moment.  Please try again later.";
     }
    ?>
    See this part, $to = "[email protected]"; , change it to your email then click save as, mail.php (make sure you include the .php).

    This flash communicates with the php, so your going to need upload it to your server then get the url (say it's http://www.Hey.com/mail.php). Now go into the starting script of the movie I sent you and replace http://www.yoursite.com/mail.php with your url (http://www.Hey.com/mail.php).

    If your using AOL, AOL and some other web mail will send php sent mail into the spam folder, so check there and report it as "this is not spam" or something.

    Ok, reply if you have any questions.

    -Brent
    Attached Files Attached Files
    BC

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