You are here: Re: urlencode and $_GET « PHP Programming Language « IT news, forums, messages
Re: urlencode and $_GET

Posted by Erwin Moller on 11/17/05 17:53

meltedown wrote:

<snip>

>
> And how does it get there- you send it there. So you are sending it
> throught $_GET

Well, I had the impression you didn't understand that part.
But appearantly you do.

>>
>>
>>>for example:
>>>urlencode turns
>>>HOYDM_EXC_#4_NAT
>>>into HOYDM_EXC_%234_NAT
>>>
>>
>>
>> yes.
>>
>>
>>>When I use it in an url
>>>index.php?id=HOYDM_EXC_%234_NAT
>>>
>>>$_GET[id]=HOYDM_EXC_

This part is where you confused me.
It looks like you want to ADD stuff to the $_GET-array, which doesn't make
much sense.


>>>
>>>Am I doing something wrong ?
>>
>>
>> Yes.
>>
>> If you want the value of 'id' from the URL (GET) use:
>>
>> $bla = $_GET["id"];
>
> Yes of course I know that- I'm not talking about getting the value from
> $_GET. I am saying that the value of $_GET is equal to "HOYDM_EXC_". Its
> obvious what I meant. The point is, the end of the string is missing.
> Do you now whether this is a common problem ?

I do not see the problem to be honest.
I just tested on my own machine (PHP5) the follwing:

http://bla.bla.bla/test.php?id=HJUYH_%234_NAT

from php.test:

$id = $_GET["id"];
// ID now contains HJUYH_#4_NAT

Which is excactly what is expected.

So show us some more code.

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация