note 57355 deleted from function.urlencode by mazzanet
| From: | mazzanet@php.net | Date: | Sat, 01 Oct 2005 10:28:25 +0000 |
| Subject: | note 57355 deleted from function.urlencode by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96127@lists.php.net to get a copy of this message | ||
Note Submitter: benadler at gmx net
----
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;'>