In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi I have an online email form but I can't get the text layout the same as
> the layout someone types in the text Area, here is the final bit of code:
> $message = stripslashes($message);
> $message = htmlentities($message);
> $message = nl2br($message);
> $from="From: $email";
> $to= "[EMAIL PROTECTED]";
> Basicly the problem is if someone puts a new line in the text area this
> appears as <BR />. example:
> this is a test
> would end up
> <br />
> this is a test.
> Any help please?
Take out the nl2br - that's only for html
Quod subigo farinam
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php