contact.php not working from flash on vurtual server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Derek Moore
    New Member
    • Feb 2007
    • 1

    #1

    contact.php not working from flash on vurtual server

    Hi any one help with this one below is the "contact.ph p form" and the contents of the "button "from with in flash! but all i get back is the field names but no content any ideas???
    contact.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Contac t</title>
    </head>
    <?php
    if (!empty($_GET))
    {
    extract($_GET);
    }
    else if (!empty($HTTP_G ET_VARS))
    {
    extract($HTTP_G ET_VARS);
    }

    if (!empty($_POST) )
    {
    extract($_POST) ;
    }
    else if (!empty($HTTP_P OST_VARS))
    {
    extract($HTTP_P OST_VARS);
    }


    $to = "derekmoore1234 @hotmail.com";
    $subject = "Contact letter";
    $message = "Hello! \n";
    $message .= "Name: " . $_GET['name'] . "\n";
    $message .= "Phone: " . $_GET['phone'] . "\n";
    $message .= "E-mail: " . $_GET['email'] . "\n";
    $message .= $_GET['message'] . "\n";
    $headers = "From: " . $_GET['email'] . "\r\n" .
    "Reply-To: " . $_GET['email'] . "\r\n" .
    "X-Mailer: PHP/" . phpversion();

    mail($to, $subject, $message, $headers);

    ?>
    <html>
    <body bgcolor="#282E2 C">
    <div align="center" style="margin-top:60px;color: #FFFFFF;font-size:11px;font-family:Tahoma;f ont-weight:bold">
    Your message was sent. Thank you.
    </div>
    </body>
    </html>
    <script>resizeT o(300, 300)</script>r

    <body>
    </body>
    </html>

    The button from with in flash 8
    on (release) {
    _parent.getURL( "contact.php"," _blank",
    "GET");
    _parent.name="n ame:";
    _parent.phone=" phone:";
    _parent.email=" email:";
    _parent.message ="message:";
    }

    and the outcome
    Hello!
    Name:
    Phone:
    E-mail:
    empty!!
    I am running on a vurtual server with 1and1.co.uk
    you can see what is on or off in php by going to
    http://www.concrete-crusher.co.uk/test/php/test.php
    although i do not understand this!
    also safe_mode is on and i do not know how to trn it off if it makes a diferance?
    and i have made a htaccess file but to no avail.

    best wishes

    Derek Moore
Working...