squirellplaying
09-10-2004, 10:11 PM
I set up a form to get emails sent to my email from my website. The thing is I don't get the text part! I see the subject(which I set), the email and the name.
Here is the page:
<div>
<br />
<form method="post" action="sendMail.php">
Your Email Address:<input type="text" name="yourEmail" /> <br />
Your Name:<input type="text" name="name" /><br />
<span style="vertical-align:top;">Text:</span><textarea name="messageTxt" cols="28" rows="10" name="text"></textarea><br />
<input type="submit" value="Send" />
</form>
</div>
sendMail.php
<?php
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($yourEmail);
$subject = "My Website Email";
$text = stripslashes($text);
mail('changed for security purposes',$subject,$text,"From: $name <$email>");
header("location:index.php");
?>
I've attached screenshots to better show you what I mean. First is what I filled in on my form. The second is my gmail with the email opened.
Edit: Horrible second ss quality, had to host on my freewebs site.
http://www.freewebs.com/squirelplayintag2/gmail.png
Here is the page:
<div>
<br />
<form method="post" action="sendMail.php">
Your Email Address:<input type="text" name="yourEmail" /> <br />
Your Name:<input type="text" name="name" /><br />
<span style="vertical-align:top;">Text:</span><textarea name="messageTxt" cols="28" rows="10" name="text"></textarea><br />
<input type="submit" value="Send" />
</form>
</div>
sendMail.php
<?php
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($yourEmail);
$subject = "My Website Email";
$text = stripslashes($text);
mail('changed for security purposes',$subject,$text,"From: $name <$email>");
header("location:index.php");
?>
I've attached screenshots to better show you what I mean. First is what I filled in on my form. The second is my gmail with the email opened.
Edit: Horrible second ss quality, had to host on my freewebs site.
http://www.freewebs.com/squirelplayintag2/gmail.png