passing BIG variables through URL problem!

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
ajarmeh
Forum Newbie
Posts: 9
Joined: Fri Oct 28, 2005 11:06 am

passing BIG variables through URL problem!

Post by ajarmeh »

HI,
iam building a site that includes very sufisticated queries, i am sending these queries via URL to other pages, it works fine when the query length is not very big, however some of my queries that have to be passes are as big as 1 or 2 pages, LOL! it does NOT WORK!!!!! it seems that there is a limit on the size of the URL... is that true?
i also tried passing these BIG variables via hidden form items.... it didnt solve the problem of BIG variables.....


any ideas?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Store the query in a session and then pick that up on the other page. You can store lots of data in sessions... the stuff we do at work uses sessions like this pretty heavily.

http://www.php.net/session_start
ajarmeh
Forum Newbie
Posts: 9
Joined: Fri Oct 28, 2005 11:06 am

Post by ajarmeh »

thanks alot
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

also, if you insist on using the URL shorten the variable names $reallylongassstupidridiculouslylongvariablename could be shortened to at work $reallylong and then on what it's equal to make it numbers instead of words, 0=no,1=yes,2=maybe,3=whocares? etc.etc.etc.
Post Reply