In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Richard Kurth) wrote:
> $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
It's an HTTP issue. You only think you're passing "what+ever" in the
second example; the value actually being passed is "what ever". See
<http://php.net/urlencode> & <http://php.net/rawurlencode>
--
CC
--
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]