note 57355 added to function.urlencode
| From: | benadleratgmxnet at osu1 dot php dot net | Date: | Sat, 01 Oct 2005 09:30:23 +0000 |
| Subject: | note 57355 added to function.urlencode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96120@lists.php.net to get a copy of this message | ||
to monty3 at hotmail dot com:
you need to urlencode twice if you call the javascript function from a link like this:
<a href='javascript:foo($url)'>
because the browser's js already urlDEcodes once. You can work around this problem by using:
<a href='#' onClick='foo($url);return false;'>
----
Manual Page -- http://www.php.net/manual/en/function.urlencode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57355
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57355&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57355&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57355&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57355&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57355&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57355&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57355&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57355&report=yes
Search -- http://master.php.net/manage/user-notes.php