Jump to content

survey help


skeezmo

Recommended Posts

I have an equality survey with multiple stages. These stages seem to be in the way of the data selected being put to variables. I have tried to implement as best I can the way to save the data to a variable with only one page of options, but this has truly stumped me.

Does anyone here know how exactly I would go about doing this?

Hess


PS :

The code is extremely long, so I have put it on this separate page as not to clutter up the forum. [a href=\"http://68.230.58.109:916/aero/source.txt\" target=\"_blank\"]Source Code[/a]

You can also view the page if you wish here : [a href=\"http://68.230.58.109:916/aero/survey.php\" target=\"_blank\"]http://68.230.58.109:916/aero/survey.php[/a]
Link to comment
Share on other sites

You want to use sessions.

At the start of each script, put the code [code]<?php session_start(); ?>[/code]
Whenever you want to store a variable, use [code]<?php $_SESSION['some_var'] = $some_var; ?>[/code]
When you want to use a value stored in the session array, you can either assign it to a variable [code]<?php $some_var = $_SESSION['some_var'] ?>[/code] or use it directly, as in [code]<?php echo $_SESSION['var']; ?>[/code]

Ken
Link to comment
Share on other sites

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.