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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:08:36+00:00 2026-06-12T04:08:36+00:00

I have a trivial question. I need to get data from previous page. For

  • 0

I have a trivial question.

I need to get data from previous page. For example, i am in some kind of category view, and then I could click on button to add new post. I want to get category information to autofill for post.

But, till now, I have only two ideas, how to do that. One – setting session with data in current category view to use it in post page, or getting information from previous category view address information with agent referral.

Any other ideas?

PS Sorry, I didn’t mentioned anything about this project at all… This is PHP, and previous and any next pages are in the same project 😉

  • 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-06-12T04:08:37+00:00Added an answer on June 12, 2026 at 4:08 am

    You can propagate the values through the URL

    script.php?var1=val1&var2=val2&var3=val3
    

    from there you can access them in the PHP script with

    $var1 = $_GET['var1'];
    $var2 = $_GET['var2'];
    $var3 = $_GET['var3'];
    

    if you dont want to use the URL you can post to the next page.

    <form method="post" action="{next_page}">
       <input type="hidden" name="cat" value="{category}" />
       <input type="hidden" name="var1" value="val1" />
       <input type="hidden" name="var2" value="val2" />
       <input type="submit" value="Button_TO_Next_Page" />
    </form>
    

    on the next page you would retrieve the values with

    $cat= $_POST['cat'];
    $var2 = $_POST['var2'];
    $var3 = $_POST['var3'];
    

    As you mentioned, you can use the session to hold the current category that the user is in and you wont have to worry about $_GET vs $_POST

    $val = $_SESSION['val1'];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You'll have to forgive me for asking a somewhat trivial question here, but I'm
This is just a trivial question of what convention you suggest. Recently, I have
I have some json files with 500MB. If I use the "trivial" json.load() to
I have a trivia page that is dynamically generated by some javascript code. It
This question might seem very specific but I am in need of some ideas
I have just started using CodeContracts with C#, and I might need some help.
I have made some trivial modifications to a Linux USB Wi-Fi card driver to
This seems to be pretty straight forward. I need to send email from some
(Sorry if it's a trivial question.) I have documents that looks like this (Python
I have a trivial question hopefully. I create a button with CreateWindowEx where I

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.