hello friends,
I am Having lts of entries on one page.
so i have used paging.
but i am passing some special char like # in variables.
so how can i use URLENCODE in paging..
Example …
?>
<a href =”advballlistsearch.php?sortby=ball_name&man=<? echo urlencode($manu); ?>&txtballname=<? echo urlencode($ballname); ?>&select=<? echo urlencode($sel); ?>” >
Ball Name
</a>
<?
but how can i use it paging..
In this code????
for($i = 1; $i <= $NUMPAGES; $i++):
if($i == 1 && $PAGE > 1)
echo “<a href=”$PHP_SELF?man=$manu&txtballname=$ballname&select=$sel&sortby=$sortby&page=”.($PAGE – 1).”” onMouseOver=”status=’Go to the Previous Page’;return true;” onMouseOut=”status=’ ‘;return true;”>« </a>”;
if($i == $PAGE)
echo “<font color=”#ff3333″> $i </font>”;
if($i != $PAGE)
echo “<a href=”$PHP_SELF?man=$manu&txtballname=$ballname&select=$sel&sortby=$sortby&page=$i” onMouseOver=”status=’Go to Page $i’;return true;” onMouseOut=”status=’ ‘;return true;”> $i </a>”;
if($i == $NUMPAGES && $PAGE != $NUMPAGES)
echo “<a href=”$PHP_SELF?man=$manu&txtballname=$ballname&select=$sel&sortby=$sortby&page=”.($PAGE + 1).”” onMouseOver=”status=’Go to the Next Page’;return true;” onMouseOut=”status=’ ‘;return true;”> »</a>”;
endfor;
Please Help Me….