|
Posted by Ramon on 02/05/07 19:41
The length of the string is +/= 1200 characters. The maximum for IE is 2048,
and for other browsers even longer...
"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.tnaif7mnqnv3q9@misant.kabel.utwente.nl...
Ramon <info@kwekerijschiffelers.nl> wrote:
> Hi all,
>
> I've written a php script, called test.php, consisting of the following
> statements:
>
> <?php
> error_reporting(E_ALL);
> $query = $_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. Any
> help is appreciated!!
The GET string has a maximum, both by HTTP design and browser limitations,
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
[Back to original message]
|