PDA

View Full Version : Contact form pb


ptityop
03-06-2009, 07:34 PM
Hi!!
This is a desperate man speaking :-) I bought a template and I've been trying to mak the contact form to work for a while now ...followed every possible instructions but nothing happens....My problem is that the mail is sent ok but fields content does not show.... could anyone be kind enough to have a look at the code below and tell me what is wrong.....? With many thanks

This is the ACTION SCRIPT CODE

on(rollOver) {

this.gotoAndPlay("s1");
this.arr.gotoAndPlay("s1");

}

on(rollOut, releaseOutside) {
this.arr.gotoAndPlay("s2");
this.gotoAndPlay(this._totalframes-this._currentframe);
}

on (release) {
_parent.getURL("contact.php","_blank","_POST");
_parent.name="name";
_parent.surname="surname";
_parent.mail="mail";
_parent.phone="phone";
_parent.message="message";
}


and this is my PHP CODE

<?php

$name = $_GET['name'];
$surname = $_GET['surname'];
$phone = $_GET['phone'];
$mail = $_GET['mail'];
$message = $_GET['message'];



$recipient .= "ptityop@hotmail.com";
$subject = "From: " .Tejidos;
$headers = 'Content-type: text/html; charset=iso-8859-1';

$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "Nombre: <b>" . $name . "</b><br>";
$content .= "Apelido: <b>" . $surname . "</b><br>";
$content .= "Telefono: <b>" . $phone . "</b><br>";
$content .= "E-mail: <b>" . $mail . "</b><br><hr><br>";
$content .= $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">
Gracias. Thank you.
</div>
</body>
</html>


Thanks a lot