470,863 Members | 1,389 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,863 developers. It's quick & easy.

checkbox issues

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
4 1350
r035198x
13,262 8TB
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
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
r035198x
13,262 8TB
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
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.

Similar topics

2 posts views Thread by JIM | last post: by
4 posts views Thread by Kevin Davis | last post: by
1 post views Thread by glenn | last post: by
reply views Thread by =?Utf-8?B?VGVk?= | last post: by
3 posts views Thread by Raymond | last post: by
2 posts views Thread by mrstrong | last post: by
2 posts views Thread by mrstrong | last post: by
5 posts views Thread by =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.