On Monday 25 April 2005 17:54, Juffermans, Jos wrote: > As far as I know there is no limit on the amount of variables, however > there is a limit on the length of the URL including query (I believe 256 > characters). > > Normally I would use hidden fields in a form (method POST) for this kinda > stuff. It's up to the server. Check the RFC 2616 (HTTP Protocol): " The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths. " > > Jos > > > -----Original Message----- > From: veditio@xxxxxxxxxxx [mailto:veditio@xxxxxxxxxxx] > Sent: 25 April 2005 16:49 > To: php-db@xxxxxxxxxxxxx > Subject: 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=1&b=2&c=3&e=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 characters in length. > > It's the best way I know to keep varaiables alive from page to page in a > situation where the user does not use cookies, but I'm worried that too > many $_GETs will slow down the server, cause trouble with the page, and > possibly cause problems that I have not yet seen. > > Comments? Suggestions? > > Thanks in advance for any feedback. > -v- > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436
Attachment:
pgpnQDiDruocq.pgp
Description: PGP signature