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

  • SEARCH
  • Home
  • 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 6141379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:14:34+00:00 2026-05-23T18:14:34+00:00

I have a very frustrating problem: The $_POST values disappears when using pagination, I’ve

  • 0

I have a very frustrating problem: The $_POST values disappears when using “pagination”, I’ve tried with $_SESSION, which basicly gave me the same result as $_POST.

I tried using setcookies() which worked except I had to refresh the page one time.

global $wp_query;
global $wpdb; 
global $post;  

$restriction1 = 'pool';  
$restriction2 = 'garage';  
$restriction3 = 'tomttradgard';  
$restriction4 = 'enplanmarkplan';  
$restriction5 = 'hiss';  $restriction11 = 'flertoaletter';   
$restriction12 = 'havsutsikt'; 

$restriction13 = 'takterass';   
$restriction6 = 'sovrum';  
$restriction7 = 'pris';  
$restriction8 = 'omrade';  
$restriction9 = 'area';  
$restriction10 = 'hustyp';

if ($_POST["poolsb"]) { $value1 = $_POST["poolsb"]; } 
if ($_POST["garagesb"]) { $value2 = $_POST["garagesb"]; }
if ($_POST["tomttradgardsb"]) { $value3 = $_POST["tomttradgardsb"]; } 
if ($_POST["enplanmarkplansb"]) { $value4 = $_POST["enplanmarkplansb"]; }
if ($_POST["hisssb"]) { $value5 = $_POST["hisssb"]; }
if ($_POST["flertoalettersb"]) { $value11 = $_POST["flertoalettersb"]; }
if ($_POST["havsutsiktsb"]) { $value12 = $_POST["havsutsiktsb"]; }
$value13 = $_POST["takterasssb"];


if (!$ppp) { if ($_POST["ppp"]) { $ppp = $_POST['ppp']; } else { $ppp = 10; } }
if (!$value1) { $value1 = '%';}  if (!$value2) { $value2 = '%';}
if (!$value3) { $value3 = '%';} if (!$value4) { $value4 = '%';} 
if (!$value5) { $value5 = '%';} if (!$value6) { $value6 = '%';}
if (!$value7) { $value7 = '%';} if (!$value8) { $value8 = '%';} 
if (!$value9) { $value9 = '%';} if (!$value10) { $value10 = '%';}
  • 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-23T18:14:35+00:00Added an answer on May 23, 2026 at 6:14 pm

    If you place the following at the top of all your pages, you should be able to use $_SESSION

    session_start();
    

    $_POST is only transmitted from a form once, you cannot pass these values on without using session or another mechanism.

    Page 1

    <?php
     session_start();
     $_SESSION['myvar'] = "123";
    ?>
    

    Page 2

    <?php
     session_start();
     echo $_SESSION['myvar']; //outputs 123
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very frustrating problem which I cannot result. Its just not adding
I have a very simple problem which requires a very quick and simple solution
I have a very simple WPF application in which I am using data binding
Ok, I have a very frustrating problem. I am parsing a webpage and need
I have a very frustrating python problem. In this code fixedKeyStringInAVar = SomeKey def
I need help with a very frustrating problem with Visual Studio 2008. I have
I have a very frustrating problem reading files in Groovy (windows). I've spent quite
We have very strange problem, one of our applications is continually querying server by
I have very little experience building software for Windows, and zero experience using the
i have very simple problem. I need to create model, that represent element of

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.