djtizzlemaster
Programmer
For a while I was using the GET function, like so:
The problem is that now I have a HUGE amount of variables, and somewhere - my guess is in browsers - there seems to be a limit on the length of a URL, because the variables toward the end of the URL are not getting sent.
Is there a better way to send the variables? It would be great if PHP had some kind of built-in function that could just send all the variables in a file to another file, something like this:
I know there's also the POST method, but I am not using a form on the page from which I'm sending the variables.
Code:
<a href="index.php?var1=$var1&var2=$var2">
The problem is that now I have a HUGE amount of variables, and somewhere - my guess is in browsers - there seems to be a limit on the length of a URL, because the variables toward the end of the URL are not getting sent.
Is there a better way to send the variables? It would be great if PHP had some kind of built-in function that could just send all the variables in a file to another file, something like this:
Code:
<a href="index.php?allvariables">
I know there's also the POST method, but I am not using a form on the page from which I'm sending the variables.