Hello:
I have a problem, for some reason the output email will no show line breaks when they hit [enter] in the textarea.. the output seams to stay on one line.. how can i make it so that it will show line breaks?
<?php
if($op == "send") {
$headers = "From: $from\n";
mail("$to", $subject, stripslashes($body), $headers);
echo "<br />Your Email has been sent!\n";
}
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=\"post\">\n";
echo "<input type=\"hidden\" name=\"op\" value=\"send\"></p>\n";
echo "<P><strong>To:</strong><br />\n";
echo "<input type=\"text\" name=\"to\" size=30 value=\"$to\"></p>\n";
echo "<P><strong>From:</strong><br />\n";
echo "<input type=\"text\" name=\"from\" size=30 value=\"$from\"></p>\n";
echo "<P><strong>Subject:</strong><br />\n";
echo "<input type=\"text\" name=\"subject\" size=30 value=\"$subject\"></p>\n";
echo "<P><strong>Body:</strong><br />\n";
echo "<textarea name=\"body\" cols=50 rows=10 wrap=virtual>$body</textarea>\n";
echo "<p><input type=\"submit\" name=\"submit\" value=\"Send Email\"></p>\n";
echo "</form>\n";
?>