Page 1 of 1

GET [solved]

Posted: Thu May 04, 2006 6:46 am
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.

Posted: Thu May 04, 2006 6:51 am
by Weirdan
That depends on server configuration. Usually, apache has GET string length limit set at about 2-4KB

Posted: Thu May 04, 2006 7:06 am
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.

Posted: Thu May 04, 2006 9:21 am
by feyd
Pack them into hex? although I'd personally stick all that data into their session.