note 14054 added to function.htmlspecialchars.php
| From: | php-general at lists dot php dot net | Date: | Sun, 15 Jul 2001 03:18:54 +0000 |
| Subject: | note 14054 added to function.htmlspecialchars.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15402@lists.php.net to get a copy of this message | ||
If your sending data from one form to another, the data in the textareas and text inputs may need to
have htmlspecialchars("form data", ENT_QUOTES) applied, assuming you will ever have quotes
or less-than signs or any of those special characters. Using htmlspecialchars will make the text
show up properly in the second form. The changes are automatically undone whenever the form data is
submitted. It does seem a little strange, but it works and my headache is now starting to go away.
AZ
http://www.php.net/manual/en/function.htmlspecialchars.php