clive schreef:
Hi - What Al said, but you want to use the url_encode/url_decode
functions in php
you don't need to use url_decode() because php will do that automatically
for incoming data - the caveat being situations where double urlencoding is
being used (anyone playing with multiple redirection and such will feel what
I mean), that is not the situation here
e.g.:
echo '<a href="browse.php?DarScientificName=', urlencode("Argononemertes australiensis"), '">...</a>';
I think actually the whole url should be urlencoded as a matter of course, not
100% sure about this (and it's way to early on a monday to bother checking up ;-) ...
maybe someone else can chime in?
Clive
Churchill, Craig wrote:
Hello,
One of the values I'm passing in a URL string contains multiple spaces.
<a href="browse.php?DarScientificName=Argononemertes
australiensis">...</a>
(The multiple spaces are between Argononemertes and australiensis)
However when I retrieve the value using $_GET[DarScientificName]
there is only a single space between the two names which I understand
is the intended behaviour?
Is there a way to preserve the multiple spaces?
Thanks
Craig.
Craig Churchill
Collection Systems Specialist
Museum Victoria
GPO Box 666
Melbourne VIC 3001
Australia
Telephone +61 3 8341 7743
Email cchurch@xxxxxxxxxxxxxxxxx
museumvictoria.com.au
This e-mail is solely for the named addressee and may be
confidential.You should only read, disclose, transmit, copy,
distribute, act in relianceon or commercialise the contents if you are
authorised to do so. If you are not the intended recipient of this
e-mail, please notify postmaster@xxxxxxxxxxxxxxxxx by e-mail
immediately, or notify the sender and then destroy any copy of this
message. Views expressed in this e-mailare those of the individual
sender, except where specifically stated to be those of an officer of
Museum Victoria. Museum Victoria does not represent,warrant or
guarantee that the integrity of this communication has been maintained
nor that it is free from errors, virus or interference.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php