Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...The forum looks great! You guys have done a fantastic job on arranging things there...Your site is very precise and fun to visit..."

Geography

Where in the world do Tek-Tips members come from?
scottew (IS/IT--Management)
10 Jul 09 13:57
We are using Cold Fusion 7 and I don't a whole lot of experience with Cold Fusion, however I am trying to design a survey for one of our customers.

What I would like to do is have a start page and each  time they answer a question, they hit next to go to the next page and answer the next question until they get to the end.

The last page would submit the survey and write the informatino to a SQL database.

If someone could point me in the right direction as far as storing the data in some variables to the end, I would appreciate it.

Thanks in advance.
Scott
cfSearching (Programmer)
11 Jul 09 17:16
You could use the session scope. It is a temporary scope specific to each user. It is preserved across requests.  To enable the scope create an Application.cfc file (preferred for MX7+).

http://livedocs.adobe.com/coldfusion/7/htmldocs/00000693.htm#1187059
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000694.htm#1190269

Of course the session scope has a time limit. If a user takes a long lunch before completing the survey, chances are all information will be lost. The session will expire before they return.  

Another option is to store all of the information in your database. Using a flag to identify completed surveys.  An advantage is no information would be lost, but it would mean increased database storage.  

----------------------------------
http://cfsearching.blogspot.com/

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close