if you need to pass special characters (eg. +) in the url, you need to
use a url encoding function like rawurlencode().. or choose another
delimeter which can be passed in the url like these -_.
s
Richard Kurth wrote:
>
> Question about explode
>
> this work just perfect
> $name="what+ever";
>
> $name1=explode("+",$name);
> $fname=$name1[0] ; this has what
> $lname=$name1[0] ; this has ever
>
> But if I pass the info from another page like this
>
> <a href="whatever.php?name=what+ever">test</a>
>
> $name1=explode("+",$name);
> $fname=$name1[0] ; this has what ever
> $lname=$name1[0] ; this has nothing in it
>
> $fname has both names in it
>
> How come I get this it does not make since
>
> Best regards,
> Richard
> mailto:[EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]