contact page flash actionscript php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paolazi
    New Member
    • Nov 2006
    • 5

    #1

    contact page flash actionscript php

    HI
    I have a flash templates..that uses php as well
    now I have a problem with my contact page as follows:

    the user enter his name, email and message into flash input whose Var are: your_name, your_email and message.
    then the user should press the send button and the actionscript code for the send button is:
    on (release)
    {
    url_var = "server_option= " + _root.server_op tion + "&recipient =" + _root.recipient + "&your_name =" + _parent.your_na me + "&your_emai l=" + _parent.your_em ail + "&message=" + _parent.message ;

    getURL("contact ." + _root.server_op tion + "?" + url_var, "_blank", "GET");
    _parent.your_na me = "";
    _parent.your_em ail = "";
    _parent.message = "";
    }


    But when I actually press the send button a window pop up with the HTTP 404 error.
    Here is also the contact page code that has been called :


    <?
    $subject="from" .$_GET['your_name'];
    $headers= "From:".$_G ET['your_email']."\n";
    $headers.='Cont ent-type: text/html; charset=iso-8859-1';
    mail($_GET['recipient'], $subject, "
    <html>
    <head>
    <title>Contac t letter</title>
    </head>
    <body>

    <br>
    ".$_GET['message']."
    </body>
    </html>" , $headers);
    echo ("your message was sent!");
    ?>
    <script>
    resizeTo(300, 300)
    //window.close()
    </script>


    Can anyone help me to figure out why these codes do not work?....
    Thank you
    Paola
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    your php code is sloppy and won't work, please refer yourself to the php forum for more help on this where a php expert can help you figure out whats wrong with your php.

    Comment

    Working...