I have put a Recordset Navigation Bar into a php page showing the results of a search. The Navigation bar will allow the viewer to navigate either by pressing "previous" or "Next", the navigation works but in the address bar it displays a weird address ending with 20%20"20"20%20% ect.
The code for the navigation bar is below.
<tr>
<td width="31%" align="center" bgcolor="#CCCCCC"> <font color="#666666" size="2" face="Arial, Helvetica, sans-serif">
<?php if ($pageNum_myDisplay > 0) { // Show if not first page ?>
<a href="<?php printf("%25s?pageNum_myDisplay=%25d%25s", $currentPage, max(0, $pageNum_myDisplay - 1), $queryString_myDisplay); ?>">Previous</a>
<?php } // Show if not first page ?>
</font></td>
<td width="23%" align="center" bgcolor="#CCCCCC"> <font color="#666666" size="2" face="Arial, Helvetica, sans-serif">
<?php if ($pageNum_myDisplay < $totalPages_myDisplay) { // Show if not last page ?>
<a href="<?php printf("%25s?pageNum_myDisplay=%25d%25s", $currentPage, min($totalPages_myDisplay, $pageNum_myDisplay + 1), $queryString_myDisplay); ?>">Next</a>
<?php } // Show if not last page ?>
</font></td>
</tr>
Any advice would be appreciated.
Mark