Php Mail Problem
I'm having trouble with this php mail code. I'm not sure if I altered it on accident with I copied and pasted it from other sites i've worked on. It send the email however its blank, it only shows:
Name:
Phone:
Email:
Description:
HTML code
<DIV style=" background-image: url(background.png);position: absolute; top:555px; left:40px; width:260px; height:320px; border: 2px black solid; color:white;">
<form method="post" action="php/thanks.php">
<b>Name:</b> <input name="nombre" type="text" STYLE="background: white; border: 2px black solid;"><br >
<b>Phone:</b><input name="phone" type="text" STYLE="background: white; border: 2px black solid;"><br >
<b>Email:</b> <input name="email" type="text" STYLE="background: white; border: 2px black solid;"><br >
<b>Message:</b><br >
<textarea name="comments" rows="4" cols="27" STYLE="background: white; border: 2px black solid;"></textarea><br >
<input type="submit" value="send">
</div>
PHP php/thanks.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<body>
<?php
$name = $_post['nombre'];
$phone = $_post['phone'];
$email = $_post['email'];
$comments = $_post['comments'];
$msg .= " Name: ".$name."\n";
$msg .= " Phone: ".$phone."\n";
$msg .= " Email: ".$email."\n";
$msg .= " Description:
". $comments."\n";
$recipient = "email@address.com";
$subject = "New Lead";
mail($recipient, $subject, $msg);
?>
<font size="7">Thank You</font>
</body>
</html>
RazorRamon
Junior Poster in Training
74 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
filter the HTML or the PHP? I'm sorry not too sure what you mean or how to do that.
RazorRamon
Junior Poster in Training
74 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
I tried what you suggested and put it in caps... same problem
RazorRamon
Junior Poster in Training
74 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0