textarea form input converting < and > to < >
| From: | Byron Albert | Date: | Wed, 20 Feb 2002 18:31:26 +0000 |
| Subject: | textarea form input converting < and > to < > | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85567@lists.php.net to get a copy of this message | ||
Hello,
I have a few forms that are used to input html. We have run into a
problem of < and > getting turned into < and > when you hit
submit, Or if you hit submit more than once. I have attached a sample
form. The major problem here is that some times we want < and some
times we want to input html tags. Has any one else run into this problem
maybe even found a solution.
Any help would be appreciated.
Thanks
Byron
<html>
<head>
<title>test form</title>
</head>
<body>
<form method=post>
<TEXTAREA NAME=test rows=10 cols=50><? echo $test; ?></textarea>
<br>
<INPUT TYPE="submit" NAME="submitaction" VALUE="Submit">
</form>
<br>
what you typed
<br>
<? echo $test; ?>
</body>
</html>
--
--------------------------------------------------------------------------------
Byron Albert balbert@internet.com
System Engineer Internet.com a Division of INT Media Group
203-662-2848
"Engineering does not require science. Science helps a lot but
people built perfectly good brick walls long before they knew
why cement works." -Alan Cox