Contact.php & Flash action script

  • darkic
  • Born
  • Born
  • No Avatar
  • Joined: Nov 01, 2007
  • Posts: 1
  • Status: Offline

Post November 1st, 2007, 2:32 pm

Guys first hello to all .. Like u see im new here. Like the site alot.

I need a litle help... I have a Template Monster - Website. I uploaded today on my host server. And notice that Contact form dont work..
I put my mail in the action script but nothing again. What its my mistake?
Here go the action script and contact.php script


Action Script from flash:

rec.text = "contact@mymailhere.com";
serv.text = "php";
field_1.text = "field_1 description";
field_2.text = "field_2 description";
field_3.text = "field_3 description";
field_4.text = "field_4 description";
field_5.text = "field_5 description";
field_6.text = "field_6 description";
field_7.text = "field_7 description";
function reset_txt(name, name2, value) {
path = eval(_target);
path[name2] = value;
this[name].onSetFocus = function() {
path = eval(_target);
if (path[name2] == value) {
path[name2] = "";
}
};
this[name].onKillFocus = function() {
path = eval(_target);
if (path[name2] == "") {
path[name2] = value;
}
};
}
reset_txt("t1", "your_name", "Your Name:");
reset_txt("t2", "your_email", "Email:");
reset_txt("t3", "phone", "Phone");
reset_txt("t4","message","Comment:");



Contact.php Script:

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

<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 1st, 2007, 2:32 pm

  • zhaojany
  • Student
  • Student
  • User avatar
  • Joined: Aug 03, 2006
  • Posts: 78
  • Status: Offline

Post November 1st, 2007, 8:34 pm

In your flash ,have you call for the php file and pass your variable the right way?
And you should test your php file first to confirm it works well .

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 35 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.