By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,570 Members | 982 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,570 IT Pros & Developers. It's quick & easy.

checkbox issues

P: 13
hello all,
i have a checkbox on a page (page 1) where when you check it, some text fields appear. if you uncheck the box, the text fields hide. the user then clicks a submit button to go on to the next page (page 2). the issue i'm having is that if the user checks the box and then goes to page 2, and then decides to go back (we don't give them the option, but they can always click the browser back button), the checkbox is unchecked. is there a way to set the checkbox that if it's checked it will remain checked upon returning to the page 1?

please assist!
thanks!
Feb 15 '07 #1
Share this Question
Share on Google+
4 Replies

10K+
P: 13,262
hello all,
i have a checkbox on a page (page 1) where when you check it, some text fields appear. if you uncheck the box, the text fields hide. the user then clicks a submit button to go on to the next page (page 2). the issue i'm having is that if the user checks the box and then goes to page 2, and then decides to go back (we don't give them the option, but they can always click the browser back button), the checkbox is unchecked. is there a way to set the checkbox that if it's checked it will remain checked upon returning to the page 1?

please assist!
thanks!
What you basically need is a method of passing data between 2 html pages. That has already been asked here. I think you can also use a cookie for that.
Feb 15 '07 #2

P: 13
What you basically need is a method of passing data between 2 html pages. That has already been asked here. I think you can also use a cookie for that.
I don't know that I explained this correctly, allow me to try again:

on Page 1 there is a check box that when clicked displays three hidden text boxes and radio buttons. on unclicking, they go back to hidden. the user can click a submit button to move to the next page. once on Page 2, if the user uses the browser back button, they will return to Page 1. upon return to Page 1 the check box is still checked, but the fields underneath are hidden. if the user unchecks the box, the fields reappear. fortunately, the fields remained filled. but upon returning to Page 1 i need the boxs to remained checked and the fields to be displayed. i hope this clarifies my problem.
Feb 15 '07 #3

10K+
P: 13,262
I don't know that I explained this correctly, allow me to try again:

on Page 1 there is a check box that when clicked displays three hidden text boxes and radio buttons. on unclicking, they go back to hidden. the user can click a submit button to move to the next page. once on Page 2, if the user uses the browser back button, they will return to Page 1. upon return to Page 1 the check box is still checked, but the fields underneath are hidden. if the user unchecks the box, the fields reappear. fortunately, the fields remained filled. but upon returning to Page 1 i need the boxs to remained checked and the fields to be displayed. i hope this clarifies my problem.
If you were using a back button then the thread I suggested might help since you will want to pass the value of the checkbox back to page 1. For using the browser's back button I think setting a cookie would solve your problem
Feb 15 '07 #4

P: 13
thanks for the advice. i'll give it a try and post my findings...
Feb 15 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.