Jump to content

Recommended Posts

Hi

 

I'm creating a 3 page form, using information from an XML service.

 

The steps are as follows

Page 1. The user puts in some times / dates etc into page 1 and I fire off an XML request to get availabilities and details of all tickets available.

Page 2.  All options available are rendered for the user to choose which one they would specifically like.

Page 3. The choice is confirmed and we then pass a booking ref to a basket.

 

The issue I have is, I am building this for a 3rd party and have no access to a DB so I need to be able to hold all the data from the XML response requested in step 1, to be able to output the confirmation on step 3.

What is the best way to hold this from steps 2 to 3?

I have thought of hidden fields or possibly session variables, but there are about 15 XML fields for each returned option and I can sometimes get over 30 options returned.

 

Your thoughts please guys.

Link to comment
https://forums.phpfreaks.com/topic/266761-help-with-storing-values/
Share on other sites

session variables

 

+1

 

Session variables would result in the least a mount of overall code and the least amount of data being shipped back and forth between the server/browser. You would create arrays of the categories/options per category, stored as session variables, then use those arrays to produce the form and in the validation/display step.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.