Can't set or retreive a $_GET variable
I have a problem setting up and passing a variable in a search screen with paging..
I set up the variable like so
$townstr = sprintf("&townstr='%s'", $searchTown);
This variable is then added to the URL string when I click on the 'Next page';
<a href="<?php printf("%s?pageNum_Get1=%d%s%s%s", $currentPage1, min($totalPages_Get1, $pageNum_Get1 + 1), $queryString_Get1,$tabstr,$townstr); ?>"> Next</a>
The problem in, when the page is loaded again to show the next screen, the $_GET variable $_GET['townstr'] is always empty,
Any Ideas why it is not being set up.
I displayed it straight after the href code and can't access it, although it's definitely there, as I can see it as part of the URL when I move over the link when running the program.
