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 183089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:03:15+00:00 2026-05-11T15:03:15+00:00

Searching did not find a similar question, so: How can POST data used by

  • 0

Searching did not find a similar question, so: How can POST data used by PHP to generate one page be passed from that page to another PHP generated page? I have:

  • A form on page 1 which sends data to a PHP script via POST.
  • Page 2 is generated by that script and shows one or more graphs generated by an external program using the entries on page 1 and the back end database. This page also has another form with options to re-generate the graphs with new options (e.g. zoom in on or truncate the graph(s)).
  • If requested, page 3 will be generated with the same PHP script using POST data glued together from pages 1 and 2. Except for the graphs, its basic appearance will be the same as page 2.
  • Pages 4, 5, 6 … should be generated in the same manner as page 3.

So, how can I put the POST data used to generate page 2 into the POST data for page 3?

EDIT: Due to organizational policy, cookies can’t be used (so sessions are not feasible). GET is undesirable because we don’t want the input to show in the URL.

  • 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. 2026-05-11T15:03:16+00:00Added an answer on May 11, 2026 at 3:03 pm

    I recall struggling with this issue long ago, wondering why I simply couldn’t redirect with a modified POST header. The reason is a redirect is actually considered a GET.

    Regardless, you need to store the post variables in hidden fields.

    <input type='hidden' name='someValueFromPageOne' value='blah'> 

    I would recommend prefixing all your field names from each form so that its easy to tell them apart during your consolidation phase at the end.

    <input type='hidden' name='pageOne_firstName' value='Joe'> <input type='hidden' name='pageTwo_streetNumber' value='22'> 

    Edit: As others have mentioned, persisting data using sessions is one possibility, but this becomes a very complex matter of maintaining temporary state which things like page refreshes or using the back button can make difficult to maintain. Unless you’re facing an extreme case, it’s much easier to persist data using fields since they survive refreshes and other browser behaviour much more easily.

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

Sidebar

Related Questions

sorry, I did not find something useful when searching google. Very basic question, mainly
I did do some googling and searching on this site but did not find
I thought there had already been a similar question but searching for it yielded
While searching the interweb for a solution for my VB.net problems I often find
When searching in SharePoint the results are returned to a page called OSSSearchResults.aspx. This
I've read the several discussions about storing code snippets but I did't find the
can i somehow find all functions/macros that take a specific type of parameter ?
Searching for some sample code for converting a point in WGS84 coordinate system to
Searching for a string within a string is extremely well supported in .NET but
Searching on Google reveals x2 code snippets. The first result is to this code

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.