I need to pass several (3) variables to another page and was doing it via cookies, not the best way I know...
setcookie ('show', 'results');
setcookie ('id', "$id");
setcookie ('memid', "$memid");
anyway, I wanted to change this, so I am trying hidden fields...
<input type=hidden name="show" value="results">
<input type=hidden name="id" value="<? echo $id ?>">
<input type=hidden name="memid" value="<? echo $memid ?>">
Currently this works by the user clicking on a standard <a href... > link and then I use header to echo the page. With cookies this is fine as the variables are stored until the browser is closed and so are read this time, and the poll is displayed.
However, to view another poll you have to close the browser again.
I know I can do this by just putting the info into a table briefly and then deleting it but I'm sure this way is faster.
Could someone please tell me how to send the hidden variables onto the next page without having to put in a submit.
Thanks for any help