note 52961 added to function.urlencode
| From: | vampire_janus at yahoo dot com | Date: | Thu, 19 May 2005 01:06:39 +0000 |
| Subject: | note 52961 added to function.urlencode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89610@lists.php.net to get a copy of this message | ||
re: example 2
you should do htmlentities before url encoding the thing
ie
echo '<a href="mypage.php?foo=' . urlencode(htmlentities($userinput)) .
'">';
----
Manual Page -- http://www.php.net/manual/en/function.urlencode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52961
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52961&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52961&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52961&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52961&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52961&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52961&report=yes
Search -- http://master.php.net/manage/user-notes.php