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
[Back to original message]
|