How to recieve multiple checked checkboxes on another page

Discussion in 'HTML and CSS' started by Churchy, Oct 13, 2010.

  1. Churchy

    Churchy

    Joined:
    Oct 13, 2010
    Messages:
    1
    hey all

    I'm havin a prob with sending multiple check boxes to another page...

    for eg:

    if i have 3 rooms show from DB and must select either 1, 2 or all 3 of them and send the info to the next page. and it's in php...how?

    <form action="AvailableRooms.php" method="post" name="CheckAvailability">
    room1
    <input type="checkbox" name="$chck[]" value="Room1" />

    room2
    <input type="checkbox" name="$chck[]" value="Room2" />

    room3
    <input type="checkbox" name="$chck[]" value="Room3" />


    <input type="submit" name="Check" id="Check" value="Check Availability" />

    </form>
    --------------

    recieving page: AvailableRooms.php
    ----

    $options = $_POST['chck'];


    and then i don't know what to do...

    can anyone help me?????????????


    shot
     
    Churchy, Oct 13, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DJ Dev
    Replies:
    7
    Views:
    686
    DJ Dev
    Feb 10, 2004
  2. moondaddy
    Replies:
    4
    Views:
    108,944
    TN Bella
    Jun 22, 2004
  3. yurps
    Replies:
    1
    Views:
    6,923
    rajeshthangarasu1983
    Feb 29, 2008
  4. Jim Bancroft
    Replies:
    4
    Views:
    877
  5. Jim Bancroft
    Replies:
    4
    Views:
    175
Loading...

Share This Page