View Full Version : Passing checked Checkboxes values to another page

09-05-2005, 05:36 AM
I have a list of Checkbox in a page. How do i pass the value of checked checkboxes in other page so that i can concatenate the values of other pages checked boxes with the first page's checked values.

Thanx in advance

09-06-2005, 05:02 AM
If the 2nd page is being posted to from a form on the first page, then the checkboxes should be available in the Request.Form("mycheckboxname") collection. If you need persist the values across multiple pages, you will need to use Session or Cookie techniques to do so.

09-06-2005, 02:24 PM
Or you could just append to the form object via hidden field.

<form method="post" action="page2.asp">
<input type="checkbox" name="boxpage1" value="1">1</br>
<input type="checkbox" name="boxpage2" value="2">2</br>

<form method="post" action="page3.asp">
<input type="hidden" name="boxpage1" value="<%=Request.Form("boxpage1")%>">

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum