You are here: Re: _GET['name'] truncates « PHP Programming Language « IT news, forums, messages
Re: _GET['name'] truncates

Posted by Rik on 02/05/07 19:15

Ramon <info@kwekerijschiffelers.nl> wrote:

> Hi all,
>
> I've written a php script, called test.php, consisting of the followin=
g
> statements:
>
> <?php
> error_reporting(E_ALL);
> $query =3D $_GET['sql'];
> echo $query;
> ?>
> Using the script with 'small' values for the parameter sql works fine.=

> Although, using the script with the sql query as specified below

> <SNIP very long url>

> I do not understand why the value of the sql parameter is truncated. A=
ny
> help is appreciated!!

The GET string has a maximum, both by HTTP design and browser limitation=
s, =

and you probably reached it (anyone willing to look up what that exact =

maximum is?).

You shouldn't try to get this in a GET, just use POST.

-- =

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

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