Results 1 to 5 of 5

Thread: Flash E-mail Form
      
   

  1. #1
    lusciousdj is offline Private First Class
    Join Date
    Dec 2007
    Posts
    9

    Question Flash E-mail Form

    Hello all,
    I have almost completed my webiste but I am having problems with getting the submit button to work on my e-mail form. It has been created in flash, does anyone have any ideas about where to start. I've been on the vodahosttemplates template help website but I still do not really understand what to do!!!
    Many thanks,
    Pete Moore.

    www.hotdjs.co.uk

  2. #2
    Aliens Anonymous is offline Special Status
    Join Date
    Jan 2006
    Location
    Dark side of the moon
    Posts
    1,161

    Default Re: Flash E-mail Form

    first you will need a php file to handle what you are going to with the submitted info, then make a action script for the button that sends the the info to the php file something along the lines off.

    Code:
     
    on (release) {
     if (name eq "" or email eq "" or subject eq "" or message eq "") {
      stop();
     } else {
      loadVariablesNum("form.php", 0, "POST");
      gotoAndStop(2);
     }
    }
    Notice the green are the variables of the editbox's and the red is the php file that the info is being sent to to be processed.

  3. #3
    lusciousdj is offline Private First Class
    Join Date
    Dec 2007
    Posts
    9

    Default Re: Flash E-mail Form

    Thanks for that, this might seem like a really silly question but how do I go about making a PHP flie??
    Many thanks,
    Pete Moore.

    www.hotdjs.co.uk

  4. #4
    Aliens Anonymous is offline Special Status
    Join Date
    Jan 2006
    Location
    Dark side of the moon
    Posts
    1,161

    Default Re: Flash E-mail Form

    if your just using the standard Name, Email, Subject, and Message editboxs then you could use this
    Code:
    <?
     
       $to = "your email addresss here";
       $msg = "$name\n\n";
       $msg .= "$message\n\n";
      mail($to, $subject, $msg, "From: Contact Form\nReply-To: $email\n");
    ?>
    this a simple one that you can use, that will just send you a email with the name and message the subject will be the email subject and there email reply address will be inbeded in the From Contact Form.

    copy and paste into your text editer enter your email address into the red text area. save as form.php then upload to server into same place as the swf file.

  5. #5
    lusciousdj is offline Private First Class
    Join Date
    Dec 2007
    Posts
    9

    Default Re: Flash E-mail Form

    Aliens - I'm still having bother with making this work- but it has helped me understand things a bit better and learn how to create a php file. I have changed my site a bit and have used the "mail to" method to get people to dend e-mails for the moment, but when I get a bit more time I intend to pursue this method and make it work!! Thanks you for your assistance!
    Pete Moore.

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49