Tanja Posted December 26, 2015 Share Posted December 26, 2015 At first Merry Christmas to all I want to use pagination - but without GET-Variable to set page number....The pagination is from tuturial and Barands version (here) // get current page number $page = isset($_GET['page']) ? $_GET['page'] : 1; $().ready(function() { $(".link").click(function() { var pgnum = $(this).html(); location.href = "?page="+pgnum; // specify action on click of page number here }) }) Can I send page variable over post or session? And how to change js-function? Quote Link to comment https://forums.phpfreaks.com/topic/300012-pagination-without-get/ Share on other sites More sharing options...
Ch0cu3r Posted December 26, 2015 Share Posted December 26, 2015 Why cant you use $_GET? This is what it is for GET is used for requesting resources You cannot do pagination using Post/Sessions Quote Link to comment https://forums.phpfreaks.com/topic/300012-pagination-without-get/#findComment-1528617 Share on other sites More sharing options...
Tanja Posted December 26, 2015 Author Share Posted December 26, 2015 I can use - but i don´t like ;-) Quote Link to comment https://forums.phpfreaks.com/topic/300012-pagination-without-get/#findComment-1528632 Share on other sites More sharing options...
Tanja Posted December 26, 2015 Author Share Posted December 26, 2015 can´t edit last post...Im rewriting actual all scripts for nice url (the lang variable stay on second place now) and ?= crash at second page Quote Link to comment https://forums.phpfreaks.com/topic/300012-pagination-without-get/#findComment-1528633 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.