You are here: Re: [PHP] URL encode « PHP « IT news, forums, messages
Re: [PHP] URL encode

Posted by Richard Lynch on 02/23/05 18:52

Bruno Santos wrote:
> Hello.
>
> Im having some trouble when getting a query from a $_GET method
>
> the problem is, when using $_GET, i get some charaters decoded as html
> entities.
>
> if i submit the word %sara% (example), is ok
> but, if i submi the word %carlos%, i get Êrlos, witch is the translation
> of html entity %ca

You probably *THINK* you are getting that, because when you print it out
in your browser as part of the URL, you print out:
&%carlos

Some really stupid browsers (Microsoft IE) will assume you forgot the ; at
the end of &%ca; and turn that into the html entity.

But that's just the browser being stupid, not your data being wrong.

Use "View Source" in your browser to see what's really in your output.

> how can i can resolve it ??
>
> ive tryed with htmlentities, urlencode, urldecode, etc...

Most likely, there is nothing to solve, and none of those are needed.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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