urlencode-problems...
| From: | Martin Thoma | Date: | Mon, 14 Aug 2000 13:50:23 +0000 |
| Subject: | urlencode-problems... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11595@lists.php.net to get a copy of this message | ||
Hello !
I got to give a path through a QUERY_STRING (someting like
"myphp.php4?path=/test/test.php4").
Since you could not give "/" as a Query string (the browser doesn't get
the fact that there are "/" later in the url), I user urlencode to
make the string passable.
In the src-text, it shows
<A HREF="myphp.php4?path%3D%2Ftest%2Ftest.php4">
which is correct.
The problem:
Clicking on this link, the browser tries to open
"myphp.php4?path=/test/test.php4" (the text, decoded again), which will
not work because of the reasons mentioned above.
Is urlencode useless ?
Regards
Martin