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

    Try echo()'ing $name on the page you passed it to.
    Notice anything different? :)
    
    Before you pass values around with a query string, you
    should prepare them first by processing them with 
    rawurlencode().

    --zak


-- 
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]

Reply via email to