Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh Passing checked Checkboxes values to another page

    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
    Ani

  • #2
    New Coder
    Join Date
    Aug 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Robert
    Gee! Web Tools
    Web Content Management / Internet Marketing modules including:
    Page Editor - Calendar Manager - News Editor - Contact Organizer - Mail Wizard

  • #3
    Regular Coder
    Join Date
    Sep 2004
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or you could just append to the form object via hidden field.
    Code:
    Page1.asp
    <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>
    Code:
    Page2.asp
    <form method="post" action="page3.asp">
    <input type="hidden" name="boxpage1" value="<%=Request.Form("boxpage1")%>">
    ...
    </form>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •