Clearly <test  line> is being interpreted by the browser as an HTML tag.
Use htmlspecialchars() to encode these characters in the string.  Or find
and replace "<" with "&lt;" and ">" with "&gt;".
-Kevin

----- Original Message -----
From: "Don" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 1:12 PM
Subject: [PHP] Problem displaying certain text from a form on to the browser


Hi,

On my form, I have a text area.  I was doing some testing and on one line, I
entered the following:

<test line>

When I looked at the results pages sent to the browser, that line was
missing.  I think that the "<" character is the culprit. I've tried
stripslashes() and htmlentities() but I cannot get that line to appear on
the browser.  Any ideas?

Thanks,
Don



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to