Dealing With User Entering a Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I dug back to see where I git the idea of using htmlentities() on user input.

This came from the book Modern PHP and deals with a user entering in a text box something like:

<script>window.location.href='http://example.com';</script>

Is there a better way of dealing with this?


For context, I am creating a user registration field and there is a textarea field for their bio.

Thank you!

--
Stephen

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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux