Quote:
Originally Posted by milov
Thanks for taking the time to reply. The pages work fine except I don't know how to make checkbox once checked permanent (until simulation run again) and I don't know how to get the variable to have a numeric value and then how to sum those values at the with a final submit at the bottom of page one. Thanks for the tip on posting code.
For the first, I would use javascript. I think I could get it to work, but I'm not really a javascript expert, so I'm not sure I would take my advice, but it goes something like this:
- <input type="checkbox" name="thisCheckBox" onClick="this.Disabled='true'">
This could get you started, but it would probably be better to have the onclick attribute go to a stand-alone function that disables the checkbox. If that is something you need help with, please ask. If I can't get it to work for you, I can probably recommend someone else to do it.
For the second question, I'm still not sure I understand you. Is this something you want the web page to calculate before you submit the page? If so, it can all be done with javascript. Each checkbox clicked would pass a value to a javascript function, the function passes the number to a variable and when you submit, the submit sends that value to the form handler. Does this make sense?
ASP really only works while the page is loading. If you want the totalling to be done after submitting (and there would be no way for users to find your code) then you should use ASP for that part. Each checkbox selected passes its value attribute on to the form handler. Does this make sense?
Jared