I have been working with this annoying contact form without any success. It does send an email but it is always blank. I have no idea what is wrong... maybe there is a kind soul out there that could shed some light into this:
Code:
rec="mymail@mymail.com";
serv="php";
var fields_descriptions= Array ("",
Array("t1", "your_name", "First name:"),
Array("t2", "your_email", "E-mail:"),
Array("t3", "telephone", "Telephone:"),
Array("t4", "message", "Message:"),
Array("t5", "field_2", "Last name:")
);
for (i=1; i<=fields_descriptions.length; i++) {
this["k"+i].text=fields_descriptions[i][2];
}
for submit button, i have:
Code:
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
for (i=1; i<_parent.fields_descriptions.length; i++) {
if (_parent[_parent.fields_descriptions[i][1]]!=undefined) {
this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2];
}
}
this.recipient=_parent.rec;
i=undefined;
getURL("contact."+_parent.serv, "_blank", "POST");
}
And the contact.php:
Code:
<?php
$your_company = $_GET['company'];
$your_name = $_GET['your_name'];
$your_phone = $_GET['phone'];
$your_email = $_GET['email'];
$your_message = $_GET['message'];
$headers .= 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "Company: <b>" . $your_company . "</b><br>";
$content .= "Name: <b>" . $your_name . "</b><br>";
$content .= "Phone: <b>" . $your_phone . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";
$content .= $your_message;
$content .= "<br></body></html>";
mail($recipient,$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>
Please guys, I know that there are better form scripts out there, but I am yet interesting in possibly fixing this one.
Thank you.