Need Help With Contact Flash Form
:confused: can any one telle me whats wrong with my script? :confused: The flash contact form can be found on my website ...http://tistrup-poker-klub.dk/pokerclub.swf
under the KONTAKT link
this is the script for the "send Button"
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
_parent.getURL("contact.php","_blank","GET");
_parent.name = "Navn:";
_parent.email = "E_mail:";
_parent.phone = "Telefon:";
_parent.message = "Besked:";
}
And this is for the "Clear button"
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
_parent.name = "Navn:";
_parent.email = "E-mail:";
_parent.phone = "Telefon:";
_parent.message = "besked:";
}
AND THIS IS THE main "contact.php" script
<?php
$Navn = $_GET['name'];
$E-mail = $_GET['email'];
$Telefon = $_GET['phone'];
$Besked = $_GET['message'];
$recipient_email = "info@tistrup-poker-klub.dk";
$subject = "from" . $E-mail;
$headers = "From" . $Navn; . "<" . $E-mail . ">\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "name: <b>" . $Navn . "</b><br>";
$content .= "email: <b>" . $E-mail . "</b><br>";
$content .= "Phone: <b>" . $Telefon . "</b><br><hr><br>";
$content .= "message: <b>" . $Besked;
$content .= "<br></body></html>";
mail($recipient_email,$subject,$content,$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>
You can test it on my website http://tistrup-poker-klub.dk/pokerclub.swf
on the (KONTAKT) link
When i push the send button, all it dos is is opning HTTP 500 server fault
HELP PLEASE i have been trying to figur out what is wrong for 3 days now :eek:
regards Ronni
Hope you can figure it out Twey
Sorry Twey, but i think i have done everything right :( (no capital letters and such in the php.script).... but i still get a HTTP 500 server fault when i push the send button
but try an look at the following picture on this sample html
http://www.tistrup-poker-klub.dk/jpgpicture.html
There are 4 text boxes (Navn, witch have the variable name t1_2)....and next one (Email adresse, witch have the variable name t2_2).... and the next (Telefon, witch have the variable name t3_2) and the last text....(Besked, witch have the variable name t4_2)
Thes are the variable name i be using from now on..
Now the script i have wrote in the Adobe CS3... first the clear button
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
_parent.t1_2 = "Navn:";
_parent.t2_2 = "Email adresse:";
_parent.t3_2 = "Telefon:";
_parent.t4_2 = "Besked:";
}
Next the send button
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
_parent.getURL("kontakt.php","_blank","GET");
_parent.t1_2 = "Navn:";
_parent.t2_2 = "Email adresse:";
_parent.t3_2 = "Telefon:";
_parent.t4_2 = "Besked:";
}
And last my kontakt.php script.. ( its the same as contact.php just in danish):D
<?php
$navn = $_GET['t1_2'];
$email_adresse = $_GET['t2_2'];
$telefon = $_GET['t3_2'];
$besked = $_GET['t4_2'];
$recipient_email = "info@tistrup-poker-klub.dk";
$subject = "from" . $email_adresse;
$headers = "from" . $navn; . "<" . $email_adresse . ">\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "t1_2: <b>" . $navn . "</b><br>";
$content .= "t2_2: <b>" . $email_adresse . "</b><br>";
$content .= "t3_2: <b>" . $telefon . "</b><br><hr><br>";
$content .= "t4_2: <b>" . $besked;
$content .= "<br></body></html>";
mail($recipient_email,$subject,$content,$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>
Hope you can figure it out Twey