You are here: Re: Problem with links with form data « PHP Programming Language « IT news, forums, messages
Re: Problem with links with form data

Posted by Rik on 08/01/07 14:44

On Wed, 01 Aug 2007 16:40:34 +0200, Rik <luiheidsgoeroe@hotmail.com> wro=
te:

> On Wed, 01 Aug 2007 16:36:55 +0200, Erwin Moller =

> <Since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote:=

>
>> oprah_chopra@yahoo.com wrote:
>>> Less than 1% of my users say they can not open links like this:
>>> index.php?variable=3Dvalue&variable2=3Dvalue2
>>> Is anyone aware of some firewall/security setting that would preven=
t
>>> people from clicking on such types of links?
>>>
>>
>> In short: No, should work.
>> That is if the value1 and value2 are properly URL-encoded.
>
> If the link is 'clicked', it should be urlencoded automatically me =

> thinks...

Me thinks wrong, why the hell did I say that?

If a form is posted using a GET, it should be encoded automatically, not=
=

in a straight URL.

So, in short:

$link =3D htmlspecialchars(<path>).'?'.urlencode(<query_string>);
-- =

Rik Wasmus

 

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

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