Skip navigation
novembr1111
Currently Being Moderated

pass form values from page to page

Nov 14, 2011 2:24 PM

I am working on an application inside an admin section that allows the user to "build an order"... depending on the product they want to order various options are displayed so that the user is able to customize the order... I want the form with the options they select to pass those options onto a "confirmation page" that has a total price where they can cofirm the order and it will then be entered into the database... I don't know where to start to pass the form values to the next page without inserting them into the database. Cookies maybe? Any help is really appreciated. Thanks a lot.

 
Replies
  • Currently Being Moderated
    Nov 14, 2011 2:37 PM   in reply to novembr1111

    You could store them in cookies, or just populate them into another form so the values will be submitted when the confirms the order.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 15, 2011 7:01 AM   in reply to bregent

    SESSIONS is a good way to handle this. It's the whole point of sessions, and they can be secure.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 15, 2011 10:01 AM   in reply to Rob Hecker2

    Yes, I said Cookies when I really meant session variables - as there's probably no reason to persist the data.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 15, 2011 11:54 AM   in reply to bregent

    Yes, I was a bit surprised you had said cookies.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2011 6:53 AM   in reply to Rob Hecker2

    Actually, a session variable *IS* a cookie!

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2011 10:17 AM   in reply to MurraySummers

    Not exactly Murray. They are used similarly, but cookies are written and stored on the client while sessions variables are stored in server memory. Now, a session does store a 'cookie' on the client, but that is only used to identify the session - it does not store the actual data.

     

    For example, you want your site to store the user's login name so they don't have to remember it each time they visit. You would store the login name in a cookie. On the other hand, if you want the login name to be available during a session once they log in, you store that in a session variable. The server would then create a session cookie on the client, which would store the session id, but not the login name.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2011 10:48 AM   in reply to bregent

    Details....

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 27, 2011 9:35 AM   in reply to MurraySummers

    lol

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points