Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4030128
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:25:57+00:00 2026-05-20T11:25:57+00:00

This is more a question on php theory, and wondering how this scenario would

  • 0

This is more a question on php theory, and wondering how this scenario would be done..

So I have a gallery which has pagination, all done through reloading the page through $_GET.

I want the ability for a user to change the amount of images are displayed on a page (basically my LIMIT). I have this working, however when they go to the next page, the php reloads, and the pagecount gets reset back to default.

Is there a way to store this variable through $_POST to another page when they choose the page count, and then every time the page re-loads, it will grab that variable, so it is not re-set?

Excuse my noobiness. Hopefully this makes sense

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:25:58+00:00Added an answer on May 20, 2026 at 11:25 am

    I believe you are looking for session variables

    <?php
    session_start(); 
    $_SESSION['views'] = 1; // store session data
    echo "Pageviews = ". $_SESSION['views']; //retrieve data
    ?>
    

    http://www.tizag.com/phpT/phpsessions.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.Net MVC3 is cool and all but I have this question more out of
A quick question involving PHP development, I seem to be wondering about this more
This is more of a PHP design question. Basically, I'm going to have a
this is more a conceptual question. Consider you have a php framework that runs
This is more a question of pros/cons between PHP and JAVA. Iv been doing
This is more of a design question. I have a template class, and I
Ok this is more of a PHP question than mongodb but since i am
This is more of underlying PHP execution question. What are the positives or negatives
Arbitrary PHP question, more/less out of curiosity. I apologize if this is a silly
This is more of a conceptual question concerning the built in functionality of PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.