javascript - how to create a link to next page (currentpage+1) -


i have 30 pages. sort numbers ?page1 ?page2 ?page3......?page30

assume now, stay on page=1 http://localhost/flowplayer/manga/manga_demo2.php?page=1

and if want add button link next page (current page+1) how should do?

this try not work.

<input type="button" onclick="location.href='<?php echo $_server['request_uri'] + 1;?>';" value="next"> 

<input type="button" onclick="location.href='<?php echo $_server['request_uri'] + 1;?>';" value="next"> instead of can : <input type="button" onclick="nextpage()"/> function nextpage() {    var urlname=$_server['request_uri'];    var newurlname=substr(urlname,0,urlname.length-6)."page=";    var appendedvalue=$_get["page"]+1;    location.href=newurlname.appendedvalue;  } 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -