I am placing a "previous" link on a page. The previous page, however, is dynamicly generated. Thus the url of the page is always different. My plan is to retrieve the current url using $_SERVER['REQUEST_URI']; which returns something like this: /inventory/display.php?srtdata=make&begin=0&num=1&numBegin=1&search_value=x&search_column=pubshow
but can vary, depending on what the user has entered.
How can I send this value to the next page?
I thought I could assign it to a variable as in :
$newval = /inventory/display.php?srtdata=make&begin=0&num=1&numBegin=1&search_value=x&search_column=pubshow
and send it in the url but it can't be retrieved properly. When the parser hits the & it thinks it is a totally new variable instead of it being part of the $newval value. I've tried htmlspecialchars but couldn't get that to work (maybe because of syntax so if this should work what would the proper syntax be).
Thanks