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 10:54

meltedown wrote:

Hi,

> urlencode turns # into %23

Yes.

> When I sent it thru $_GET, it dissapears, along with anything that comes
> after it.

What does that mean?
"sending through $_GET" ???
Do you mean you use some URL?

You do not send anything through $_GET, you use $_GET to retrieve values
encoded in GET.

>
> 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_
>
> Am I doing something wrong ?

Yes.

If you want the value of 'id' from the URL (GET) use:

$bla = $_GET["id"];

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

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