By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,304 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,304 IT Pros & Developers. It's quick & easy.

contact.php not working from flash on vurtual server

P: 1
Hi any one help with this one below is the "contact.php 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.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Contact</title>
</head>
<?php
if (!empty($_GET))
{
extract($_GET);
}
else if (!empty($HTTP_GET_VARS))
{
extract($HTTP_GET_VARS);
}

if (!empty($_POST))
{
extract($_POST);
}
else if (!empty($HTTP_POST_VARS))
{
extract($HTTP_POST_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="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>r

<body>
</body>
</html>

The button from with in flash 8
on (release) {
_parent.getURL("contact.php","_blank",
"GET");
_parent.name="name:";
_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
Feb 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.