Initially to pass one variable from one page to another, what i did was
GET request from Url and store it to a hidden div , and using jquery i pick that value and pass it to next page . eg
[php]
[/php]
Now what i am doing is
GET request from url and storing it in a javascript variable for eg
[php]
<?php $searchKey=$_POST['q']; $db=$_POST['db']; ?> .......... .......... [/php]Which is the best way for passing variable ??
Or is it good to pass variable via session??