I’ve read about this same problem in other threads and I’ve tried the solutions. Hopefully, someone can help me. The website is www.lachezanddennis.com. The form is on the Guestbook page.
The form works, but the emails that I get look like this…
Name: <TEXTFORMAT LEADING=“2”><P ALIGN=“JUSTIFY”><FONT FACE=“Arial”
SIZE=“10” COLOR="#FFFFFF" LETTERSPACING=“0” KERNING=“0”>LaChez</FONT>
</P></TEXTFORMAT>
All the message should say is:
Name: LaChez
but for some reason all the formatting is there.
The input is set to “input text”
The actionscript code basically looks to see if the words “Name”, “Phone”, etc. are in the input field, and if so, it clears the input field upon clicking inside of it.
//
label_01 = "Name";
label_02 = "Phone";
label_03 = "E-mail";
label_04 = "Subject";
label_05 = "Message";
//
name1 = label_01;
number1 = label_02;
email = label_03;
subject = label_04;
message1 = label_05;
//
this.onEnterFrame = function() {
txtfld1.onSetFocus = function() {
if (name1 == label_01) {
name1 = "";
}
};
txtfld1.onKillFocus = function() {
if (name1 == "") {
name1 = label_01;
}
};
//
txtfld2.onSetFocus = function() {
if (number1 == label_02) {
number1 = "";
}
};
txtfld2.onKillFocus = function() {
if (number1 == "") {
number1 = label_02;
}
};
//
txtfld3.onSetFocus = function() {
if (email == label_03) {
email = "";
}
};
txtfld3.onKillFocus = function() {
if (email == "") {
email = label_03;
}
};
//
txtfld4.onSetFocus = function() {
if (subject == label_04) {
subject = "";
}
};
txtfld4.onKillFocus = function() {
if (subject == "") {
subject = label_04;
}
};
//
txtfld5.onSetFocus = function() {
if (message1 == label_05) {
message1 = "";
}
};
txtfld5.onKillFocus = function() {
if (message1 == "") {
message1 = label_05;
}
};
};
stop();
Here is the PHP code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Wedding Guestbook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?PHP
$to = "lachez_mccoy@hotmail.com";
$name=$_POST['name1'];
$number=$_POST['number1'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message1'];
$msg .= "This message has been sent from your Wedding Guestbook.
";
$msg .= "Name: $name
";
$msg .= "Phone Number: $number
";
$msg .= "Email: $email
";
$msg .= "Message: $message
";
mail($to,$subject, $msg, "From: Wedding Guestbook
Reply-To: $email
");
?>
</body>
</html>