Page 1 of 1

passing BIG variables through URL problem!

Posted: Fri Oct 28, 2005 11:53 am
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?

Posted: Fri Oct 28, 2005 12:22 pm
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

Posted: Fri Oct 28, 2005 12:40 pm
by ajarmeh
thanks alot

Posted: Fri Oct 28, 2005 1:01 pm
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.