Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: validating textarea
10-27-2006, 08:11 AM #1
- Join Date
- Aug 2006
- Thanked 0 Times in 0 Posts
10-27-2006, 02:51 PM #2
i supose one way is to change all "<" to "%3C" which is the html entitie for it, this will stop it doing anything harmfull and will just display as a < in the browser view (in the source code it will be %3C)
php has a function to change all html chars to their entities.
<form method="post" action="go.php"> <textarea name="text"></textarea> <input type="submit" value="go!!"> </form>