Re[2]: [PHP] explode
| From: | Richard Kurth | Date: | Mon, 25 Jun 2001 03:01:32 +0000 |
| Subject: | Re[2]: [PHP] explode | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55086@lists.php.net to get a copy of this message | ||
I figured out how to do it. Buy the way I am not the one passing the
variables like this this is how it is sent from a credit card company
when they send the customer back to my page. I am just trying to
capture that data so the customer does not have to put it in twice
nicole> if you need to pass special characters (eg. +) in the url, you need to
nicole> use a url encoding function like rawurlencode().. or choose another
nicole> delimeter which can be passed in the url like these -_.
nicole> s
nicole> 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:rkurth@pacifier.com
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-general-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Best regards,
Richard
mailto:rkurth@pacifier.com