I have a page with links so I can go to next, previous, first and last page. The page number is located in the variable $pageno
// 1. Obtain the required page number
if (isset($_GET['pageno']))
{
$pageno = $_GET['pageno'];
}
else
{
$pageno = 1;
}
For example, this is the next link:
echo " <a href='{$_SERVER['PHP_SELF']}?pageno=$nextpage'>></a> ";
The user can input a page number in a textfield and then click a button to go to that page. This will call another php page with the following code.
// get user input
$new_page = $_POST["new_page"];
$pageno = $new_page;
include ("show_search_result.php");
But this will not work. I will still get the same page. So my question is: How do I solve this?