Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP-DB] Too many $_GETs?
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 using cookies.


On Apr 25, 2005, at 10:49 AM, veditio@comcast.net wrote:

> 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
>
>
--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

Report this thread to moderator Post Follow-up to this message
Old Post
Brent Baisley
04-25-05 08:56 PM


Re: [PHP-DB] Too many $_GETs?
AFIAK its around 2K, but nay one who trusts it that far is really taking a
chance with it

Bastien

>From: Brent Baisley <brent@landover.com>
>To: veditio@comcast.net
>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 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 using
>cookies.
>
>
>On Apr 25, 2005, at 10:49 AM, veditio@comcast.net wrote:
> 
>--
>Brent Baisley
>Systems Architect
>Landover Associates, Inc.
>Search & Advisory Services for Advanced Technology Environments
>p: 212.759.6400/800.759.0577
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

Report this thread to moderator Post Follow-up to this message
Old Post
Bastien Koert
04-25-05 08:56 PM


Re: [PHP-DB] Too many $_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; ?>">
<input type="hidden" name="foo" value="<?php echo $foo; ?>">
<input type="hidden" name="bar" value="<?php echo $bar; ?>">
put those in the form, and change the method to POST. Then you can access 
the data via the $_POST var.
<?php
echo $_POST['a'];
echo $_POST['b']; echo $_POST['c']; echo $_POST['foo']; echo $_POST['bar'];
?>
And yes, it is that simple.

-- 
The Disguised Jedi
disguised.jedi@gmail.com

Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm 
world-wide BABY!
PHP rocks!
"Knowledge is Power. Power Corrupts. Go to school, become evil"

Disclaimer: Any disclaimer attached to this message may be ignored. However,
 
I must say that the ENTIRE contents of this message are subject to other's 
criticism, corrections, and speculations.

This message is Certified Virus Free


Report this thread to moderator Post Follow-up to this message
Old Post
The Disguised Jedi
04-25-05 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:30 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.