Re: explode

From: Date: Mon, 25 Jun 2001 02:33:38 +0000
Subject: Re: explode
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55080@lists.php.net to get a copy of this message
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

« previous php.general (#55080) next »