|
a href='PHP_SELF'];?>?page=1'>1a>
a href='PHP_SELF'];?>?page=2'>2a>
....
form id="myform" method="post" name="myform" action="">
input type="hidden" name="page" id="page" value="" />
form>
a href="#" onclick="mylink(1)">1a>
a href="#" onclick="mylink(2)">2a>
....
script language="java script">
function mylink(page)
{
document.getElementById('page').value = page;
document.myform.submit();
}
echo '
get page=' . $_GET['page'];
echo '
post page=' . $_POST['page'];
?>
|
|