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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:30:04+00:00 2026-05-19T17:30:04+00:00

I have a form that is supposed to store some of its data into

  • 0

I have a form that is supposed to store some of its data into a session. For the purpose of this example.

This information is then collected on another page.

<?php
session_start();
print_r($_SESSION['booking-form']);   ########### for debugging purposes  ###########

if ($_SESSION['booking-form']) {

    echo $_POST['GT_title'] 

    ?>
    <!DOCTYPE html>
    <html>
    <?php
}
elseif ($_SESSION['booking-form']) {
}?>
</html>

Now although the debug is working the echo is not working ie. echo S_POST[‘GT_title’].

  1. How do I echo the information on the second page.
  2. Can I echo it wherever I want it in the html (ie. in the middle of the body somewhere with
  3. On the first page some data in the form can be changed with options. This would need to update the session before the page is changed.

CLARIFICATION

For the purpose of a booking form. The user filled in a series of options that were then echo’d on the next page. At this point they need to log in so the form data must enter into a session. The session data should then be returned on a third page.

  • 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-19T17:30:05+00:00Added an answer on May 19, 2026 at 5:30 pm

    1) what information? $_POST['GT_title'] would refer to a form element, presumably on the previous page. Does it exist? Is it filled in? what are you expecting?

    2) You can echo where ever you like.

    3) clarify? you can update a session with post values easily.

    $_SESSION['foo'] = $_POST['bar']

    your question isn’t really that clear.

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

Sidebar

Related Questions

I have a PictureBox control on a Form that is supposed to draw something
I have a form that i want an administrator to fill out, then click
I have this simple Select box that is suppose to store the selected value
I have a url that looks like this: http://localhost/store/mens/category/t-shirts/item/a-t-shirt I have a class called
I have a form that gets emailed to the store owner. Nothing fancy, just
I have some plugin code that is supposed to look up the number of
I currently have form that checks if a user has unsubmitted changes when they
I have a form that I'm submitting through AJAX. The form includes many fields,
I have a form that I want to be validated before showing it initially.
I have a form that sends money value e.g <input type=text name=amount value=N50,000.00 NGN

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.