Is there a point where a link in a PHP/MySQL-based site has too many $_GET
variables attached to it?
I use the format index.php?a=1b=2c=3e=4 to pass variables from page to
page, and am wondering where the limit is on such a format. Right now, eight
variables are passed, each being one to four
] [mailto:[EMAIL PROTECTED]
Sent: 25 April 2005 16:49
To: php-db@lists.php.net
Subject: [PHP-DB] Too many $_GETs?
Is there a point where a link in a PHP/MySQL-based site has too many $_GET
variables attached to it?
I use the format index.php?a=1b=2c=3e=4 to pass variables from page to
page, and am
implementations might not properly support these lengths.
Jos
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 25 April 2005 16:49
To: php-db@lists.php.net
Subject: [PHP-DB] Too many $_GETs?
Is there a point where a link in a PHP/MySQL-based site
The limit on GETs is not something to do with PHP or MySQL, it's a web
server standard. I forgot what the length limit is for a URL (256, 1024
?), which is what a GET is. If you want to keep variables or
information from page to page you should use sessions. You can manage
sessions without
AFIAK its around 2K, but nay one who trusts it that far is really taking a
chance with it
Bastien
From: Brent Baisley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-db@lists.php.net (PHP)
Subject: Re: [PHP-DB] Too many $_GETs?
Date: Mon, 25 Apr 2005 12:08:08 -0400
The limit on GETs
The browser may also have something to do with it.
Use hidden input forms to transfer data from page to page. Uses POST and
makes for a prettier URL.
input type=hidden name=a value=?php echo $a; ?
input type=hidden name=b value=?php echo $b; ? input
type=hidden name=c value=?php echo $c; ?