Can't Get Up The Ladder! (help)

I seem to have hit a wall in setting up a very basic
ladder/voting system. It appears to be working properly (a single
choice can indeed be moved along and voted for and reach the final
spot) BUT the variables are being reset on each page reload so that
the past results don't stay in place. I am passing the variables in
the URL during a page reload.
The ladder test page can be viewed here:
http://www.inktank.com/ladder/ladder.cfm
(session management is set to "yes" in tha application.cfm page)
And the page code can be seen here:
quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>Ladder Test</title>
</head>
<body>
<cfparam name="entry1" default="1">
<cfparam name="entry2" default="2">
<cfparam name="entry3" default="3">
<cfparam name="entry4" default="4">
<cfparam name="entry5" default="5">
<cfparam name="entry6" default="6">
<cfparam name="entry7" default="7">
<cfparam name="entry8" default="8">
<cfif not isdefined("SESSION.pick")>
<cfset SESSION.pick = structNew()>
<cfset SESSION.pick.stepnum = 1>
<cfset SESSION.pick.choice1 = "X">
<cfset SESSION.pick.choice2 = "X">
<cfset SESSION.pick.choice3 = "X">
<cfset SESSION.pick.choice4 = "X">
<cfset SESSION.pick.choice5 = "X">
<cfset SESSION.pick.choice6 = "X">
<cfset SESSION.pick.choice7 = "X">
</cfif>
<cfif isdefined("URL.choice1")>
<cfset SESSION.pick.choice1 = #URL.choice1#>
<cfelseif isdefined("URL.choice2")>
<cfset SESSION.pick.choice2 = #URL.choice2#>
<cfelseif isdefined("URL.choice3")>
<cfset SESSION.pick.choice3 = #URL.choice3#>
<cfelseif isdefined("URL.choice4")>
<cfset SESSION.pick.choice4 = #URL.choice4#>
<cfelseif isdefined("URL.choice5")>
<cfset SESSION.pick.choice5 = #URL.choice5#>
<cfelseif isdefined("URL.choice6")>
<cfset SESSION.pick.choice6 = #URL.choice6#>
<cfelseif isdefined("URL.choice7")>
<cfset SESSION.pick.choice7 = #URL.choice7#>
</cfif>
<cfoutput>
<table>
<tr>
<td></td><td></td><td></td>
<td>
#SESSION.pick.choice7#
</td>
<td></td><td></td><td></td>
</tr>
<tr>
<td><a
href="ladder.cfm?choice1=#entry1#">#entry1#</a>
-</td>
<td></td><td></td><td>|</td><td></td><td></td>
<td>- <a
href="ladder.cfm?choice3=#entry5#">#entry5#</a></td>
</tr>
<tr>
<td></td>
<td>- <a
href="ladder.cfm?choice5=#SESSION.pick.choice1#">#SESSION.pick.choice1#</a>
-</td>
<td></td><td>|</td><td></td>
<td>- <a
href="ladder.cfm?choice6=#SESSION.pick.choice3#">#SESSION.pick.choice3#</a>
-</td>
<td></td>
</tr>
<tr>
<td><a
href="ladder.cfm?choice1=#entry2#">#entry2#</a>
-</td>
<td></td><td></td><td>|</td><td></td><td></td>
<td>- <a
href="ladder.cfm?choice3=#entry6#">#entry6#</a></td>
</tr>
<tr>
<td></td>
<td></td>
<td>- <a
href="ladder.cfm?choice7=#SESSION.pick.choice5#">#SESSION.pick.choice5#</a>
-</td>
<td></td>
<td>- <a
href="ladder.cfm?choice7=#SESSION.pick.choice6#">#SESSION.pick.choice6#</a>
-</td>
<td></td>
<td></td>
</tr>
<tr>
<td><a
href="ladder.cfm?choice2=#entry3#">#entry3#</a>
-</td>
<td></td><td></td><td></td><td></td><td></td>
<td>- <a
href="ladder.cfm?choice4=#entry7#">#entry7#</a></td>
</tr>
<tr>
<td></td>
<td>- <a
href="ladder.cfm?choice5=#SESSION.pick.choice2#">#SESSION.pick.choice2#</a>
-</td>
<td></td><td></td><td></td>
<td>- <a
href="ladder.cfm?choice6=#SESSION.pick.choice4#">#SESSION.pick.choice4#</a>
-</td>
<td></td>
</tr>
<tr>
<td><a
href="ladder.cfm?choice2=#entry4#">#entry4#</a>
-</td>
<td></td><td></td><td></td><td></td><td></td>
<td>- <a
href="ladder.cfm?choice4=#entry8#">#entry8#</a></td>
</tr>
</table>
</cfoutput>
</body>
</html>
So even though it is able to keep the session variable in
place enough to move it though the voting process, why do all the
other non slected (but previously chosen) entries revert back to
the default "X"?
I've used session befor eon forms, moving from page to page,
but this is my first time trying to set them with links and then
reloading the page.
HELP!
Thanks.
Barry Smith

InkTank1 wrote:
> This is all that is in the application.cfm file:
>
>
quote:
> <cfset this.name="ladderTest">
> <cfset this.sessionmanagement="Yes">
>
Is this in an application.*CFM* file or an application.*CFC*
file? If
this is in a CFC file all is good. If in a CFM file then this
is the
wrong form of the code and you need to use something like TSB
suggested.
If you wanted to add his timeout suggestion to the CFC form
of the
application file, just add something like:
<cfset this.sessionTimeOut = CreateTimeSpan(0, 0, 30,
0)>

Similar Messages

  • I have turned on my phone this morning and it's asking for a pass code when I have never put one in and I can't get past the page help!

    I have turned on my I phone this morning and it is asking for a pass code I have never used one and cannot get past the page can anyone help?

    You won't get a reply on your email here. These forums are for users who want to help other users.
    If you didn't buy your iPhone in your own country and you unlocked it to work in any way, you're out of luck.  If you accidentally setup a passcode check out this old discussion:
    https://discussions.apple.com/thread/3671431?start=0&tstart=0

  • HT4759 Please I need a help I cannot backup my ipad and can not get into the icloud storage.  What would I do to get into my ipad?  please I need your help

    Please I need a help.  I cannot backup my ipad and can not get into the iclous storage to delet them, because its read icloud storage is full.  Please do you have a knowledge of how I can get rid of the message and get into the ipad?

    Welcome to the Apple Community.
    You might try a forced shutdown to begin with, hold down the top and home buttons together until the device shuts down, then restart it.

  • HT201365 I've forgotten my passcode and can't get into the phone to turn off "find my iphone" in order to restore it... Help Please

    I've forgotten my passcode and can't get into the phone to turn off "find my iphone" in order to restore it... Can anyone help?

    If you know the password to your apple id login - you can then do a restoration once you have put your device into recovery mode using itunes.
    read this article to give you direction how to put your device into recovery mode.
    Once you have put in your apple id login and password this then will allow you to restore the device once the device is placed in recovery mode.
    good luck!
    http://support.apple.com/kb/ht1808

  • IMovie has frozen up on me. I've tried rebooting and reinstalling the apps- no help. I can play some of the files- but I can't get into the libraries.Even when I can get something to play the whole system crashes after a few minutes. What can I do?

    I desperately need your help. I was working on iMovie last night when the thing froze up on me. I've tried rebooting. I've tried reinstalling the apps. No change. I can play some of the files- although I can't tell which ones will play until they magically appear. I can't get into the project library or the event library. The bar that lets me scroll through the clips is gone. Even when I can get something to play the whole system crashes after a couple of minutes and generates a "problem report" that says "iMovie Quit Unexpectedly". This all started when I was adding cutaways- and one clip just would not load. After I tried several times everything froze up. Have you ever heard of something like this? Maybe I pushed a button or somehow changed a setting? Maybe some of the video is corrupt? What do you recommend?
    Thanks for any advice you can offer!

    I have tried all the above and nothing seems to work. Any other suggestions?

  • TS5376 I just attempted to update my apple iTunes to 11.1.4 which resulted in the msvcr80.dll error message. I followed all of the instructions above and now I can't get past the Service 'Apple Mobile Divice failed to start. Help!!!

    I just attempted to update my apple iTunes to 11.1.4 which resulted in the msvcr80.dll error message. I followed all of the instructions to move the .dll's to the desktop, I removed iTunes via the control panel, and now I can't get past the Service 'Apple Mobile Divice failed to start. Verify that you have sufficent privilidges to start systems services. I now have no iTunes on my laptop, can't reinstall iTunes, and I am pulling my hair out because I can not figure out how to send an e-mail to Apple because I bought my iPad just over a year ago. PLEASE HELP!!!
    V/r "TRACER"
    CDR Harold W. "TRACER" Valentine, SC, USN

    Solving the iTunes Installation Problems in Windows
    1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
    2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80.

  • Just got a new mac computer and none of the music from my old computer's itunes transfered when I transfered the contents of the hard drive.  Now I'm trying to transfer music from my ipod and can't get all the files....help?

    Just got a new  computer and none of the music from my old computer's itunes transfered when I transfered the contents of the old hard drive.  Now I'm trying to transfer music from my ipod and can't get all the files....help please?

    The iphone is not a storage/backup device.
    It has always been very basic to always maintain a backup copy of your computer for this very occasion.
    Have you failed to do this?
    If so, not good, then you can transfer itunes purchases:  File>Devices>Transfer Purchases
    You may be able to purchase a third partyn program to get the rest ( not supported by Apple)

  • My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    Sure, you can get around it if you don't need the newest version of iTunes. I still use version 7.5 because the newer versions didn't strike me as offering anything I needed.
    If you do need a version 10-something then you will have to upgrade your operating system to Leopard (fi your computer will support it) at least.  If you need 10.5 for some reason then there's no getting around it, you will have to buy a new computer.

  • My Ipad 2 started talking to me. I can't activate anything - can't get passed the opening screen to slide to unlock. I can't get to Settings or any other page. Can you help, please??

    My Ipad 2 started talking to me. I can't activate anything - can't get passed the opening screen to slide to unlock. I can't get to Settings or any other page. Can you help, please??

    If you need more help see:
    iPad: Configuring accessibility features (including VoiceOver and Zoom)

  • HT4623 after the new softtware 6.1 on my iphone i losed my picture , how can i get back ? please help me

    after the new softtware 6.1 on my iphone i losed my picture , how can i get back ? please help me

    Try deleing the download and try again. It is located:
    IPSW file location for Mac and Windows
    If yo restore, the iPod will also be update. You can try that. Just make sure that you backup first so yo can restore from backup
    iOS: How to back up

  • Help! my first mac! and I can't get past the Welcome menu window... I try to select "united states" and want to continue but nothing happens. Any idea why?

    help! my first mac! and I can't get past the Welcome menu window... I try to select "united states" and want to continue but nothing happens. Any idea why?

    Restart the Mac, and start over, it very well could be frozen. This is not the way you would like to start out your Mac experience!

  • 10.9.1 used terminal with rm-rf and deleted my user data. Can I get back the deleted data? Help.

    10.9.1 used terminal with rm-rf and deleted my user data. Can I get back the deleted data? Help.  I really just need mail file and desktop files recovered.

    If data were on the SSD drive with TRIM - practically no chance. If HDD - use DIY recovery software such as DiskDrill or DataResue.
    As quickly as possible turn off the drive where deleted data.
    Use an external HDD with installed OSX for data recovery.
    Alex
    Apple Certified Support Professional

  • My ipad can not get mail. the connection to the server failed. Even I follow ipad2 help and check everything.

    my ipad2 can not get mail. the connection to the server failed. even I follow ipad2 help and check everything

    Well it does it every time I go to mail and is driving me nuts. It never happened on my iPhone5, just on this 5s.

  • HT4623 I "updated" my iPhone4S 16gig this morning and can't get past the "Rescue Email" screen.  I entered emails as well as opted out.  I have gone back, but Apple ID Security insists I add security questions and mail.  HELP!

    I "updated" my iPhone4S 16gig this morning and can't get past the "Rescue Email" screen.  I entered emails as well as opted out.  I have gone back, but Apple ID Security insists I add security questions and mail.  HELP!

    Claudius,either you didn't read my post, or you jumped to conclusions. I had a skype account that was created using a microsoft account (NOT THE ACCOUNT I AM USING NOW). PURE MICROSOFT ACCOUNT NO OTHER ACCOUNT LINKING.I had to change the primary mail of that account.I was told "no can do" by skype support.I found that if I went to account settings and clicked on the link on the line below the one that said "MICROSOFT etc" (labeled something along the lines of "TV or Device") I got the opportunity to set the password of the "live:username" account (WHICH YOU COINCIDENTALLY HAVE TO DO IF YOU WANT TO USE SMART TVs ETC).Once that was done, I COULD SUCCESSFULLY DO WHAT SKYPE SUPPORT SAID WAS IMPOSSIBLE- I could change the primary mail address. once that was done, and NOT BEFORE, I linked the account to a facebook account as well, just to be sure I have more than one way to access the skype account. What caused you to get the impression that I was writing something else? furthermore this sentence - "The solution you described in your initial message isn't actually once since all the time you were operating on different account that weren't actually linked" does not make sense, I think you mis-edited it.and I need to point out that you are incorrect. I WAS NOT OPERATING ON DIFFERENT ACCOUNTS I WAS OPERATING ON ONE SKYPE ACCOUNT, THAT WAS CREATED USING A MICROSOFT ACCOUNT just like you say you recommend. I still don't know how you can misread my initial entry like that.  If you have a better solution to my initial problem - changing the primary mail of a skype account created throuth either a microsoft account or a facebook account, Please write a sticky to explain how to do it, and please inform skype support that Yes it can be done, and this is the way it is done. So far my "lucky shot" seems to be the only way to do it.     

  • I can't get past the Gray apple screen during start-up Help!!!

    I went to open my system pref. folder and when it wouldnt open I restarted it and now I can't get past the first screen of the Gray screen with the apple in the middle and the little spinning circle under it. Can anyone help me? have had several problems with this computer!!! I just had to have a whole new harddrive put in about a month ago.
    powerbook g4 15 inch   Mac OS X (10.4.8)  

    Welcome to the Discussions!
    The first thing to do would be to boot from your original Disk 1 by:
    1. Inserting the disc, pressing the power button, and immediately after the startup chime, press and hold the C key until you see the spinning gear icon appear on the grey splash screen.
    2. After the machine has booted, pick your language, and when the Installer window appears, do not press Continue, but go to the Utilities menu in the menubar and open Disk Utility.
    3. In Disk Utility, choose your normal startup volume in the pane on the left and then click Repair Disk. If any errors show in the window, run Repair Disk again until you see 'The volume appears to be OK' in green.
    4. Quit Disk Utility, quit the installer and attempt to restart into your regular startup volume.
    Please update your profile so we have a clearer picture of your particular machine.
    Joe
    <img src="http://homepage.mac.com/joeuu/.Pictures/groundzero5.jpg"width="20"

Maybe you are looking for