GET [solved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

GET [solved]

Post by s.dot »

how many characters can be passed through get?

I'm making an invitation script, and if an invited email is already in the member list I'm passing it through the url like

?success=1&foundEmails=email@1.com,email@2.com,email@3.com

etc. To alert them that these people were already found in the database.
Last edited by s.dot on Thu May 04, 2006 7:12 am, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

That depends on server configuration. Usually, apache has GET string length limit set at about 2-4KB
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Mm, that should be enough.

I also figure that I could look up their unique ID in the database and pass that instead of the email.

?success=1&foundMembers=1123,1383,1839

Then I'll have to look up those emails that correspond with those ids to display them. But this way I shouldn't have a problem with the length.

Thanks.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Pack them into hex? although I'd personally stick all that data into their session.
Post Reply