Retrieve Checklist Data - Sharing What I Learned

sparkii 09 Nov, 2010
Hi all,

I struggled for a couple of days to get this form to work the way I wanted to. Creating the form and connecting to the database was pretty easy using Chronoforms.

My form has a lot checkboxes and I wanted to disable those that had already been checked. This is where things got challenging. I found the code for connecting to the database from a link here in the forum. Then I figured out how to get the data I needed but I couldn't figure out how to determine if a checkbox had already been checked. Anyway, after lots of investigation and trial and error I finally got it to work. I thought I'd share it here in case anyone else could use it.

I'm not that experienced with PHP so the solution probably isn't that elegant (and I'm open to suggestions), but it works. I left in the code I used for trouble shooting, but its commented out, if anyone needs it.

Have fun!


<?php
if (!$mainframe->isSite() ) {return;}
 $db =& JFactory::getDBO();
//get checked food items
 $query = "SELECT `food` FROM `jos_chronoforms_yourFormTable`
	WHERE `food` IS NOT NULL ;";
 $db->setQuery($query);
 $database->query();
 $f_rows = $db->getNumRows();
// print_r($f_rows);
// echo "<br />";
// get value of the checked item
// for ( $i = 0; $i <= $f_rows; $i++ ) {
  $blur = $db->loadResultArray();
//  print_r($blur[$i]);}
//  echo"<br /><br />";

//get checked non-food items
$query2 = "SELECT `nonfood` FROM `jos_chronoforms_yourFormTable`
	WHERE `nonfood` IS NOT NULL ;";
 $db->setQuery($query2);
 $database->query();
 $nf_rows = $db->getNumRows();
//get value of checked item
// for ( $i = 0; $i <= $nf_rows; $i++ ) {
  $nfblur = $db->loadResultArray();
// print_r($nfblur[$i]);}
?>

<h4 class="harvest">Thank you for participating.  Please choose from the Food, Non-Food, and/or Donation columns.</h5>
<h5 class="harvest">Where:  Church Social Hall<br /> When: Tuesday, November 23 at 11:45 a.m.</h5>
<div class="form_item_info">
  <div class="form_element cf_textbox">
    <label class="cf_label">Full Name: </label>
    <input class="cf_inputbox required validate-alpha" maxlength="150" size="30" title="Please enter your full name " id="text_9" name="fullName" type="text" />
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item_info">
  <div class="form_element cf_textbox">
    <label class="cf_label">Email: </label>
    <input class="cf_inputbox required validate-email" maxlength="150" size="30" title="Please enter your email address" id="text_2" name="email" type="text" />
  </div>
  <div class="cfclear"> </div>
</div>
    
<div class="form_item_food">
  <div class="form_element cf_checkbox">
    <label class="cf_label">Food Items</label>
  <div id="divider1">
    <div class="float_left">
<?php 
//see if retrieved checked data matches possible items
  if(in_array("Turkey (18-20 lbs)-A", $blur)) { ?>
   <input value="Turkey (18-20 lbs)-A" title="" class="radio blur" id="food0" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food0" class="check_label blur">Turkey (18-20 lbs)*</label>
<?php } else { ?>
    <input value="Turkey (18-20 lbs)-A" title="" class="radio" id="food0" name="food[]" type="checkbox" />
      <label for="food0" class="check_label">Turkey (18-20 lbs)*</label>
<?php  }//if ?>
 <br />

<?php
  if(in_array("Turkey (18-20 lbs)-B", $blur)) { ?>      
<input value="Turkey (18-20 lbs)-B" title="" class="radio blur" id="food1" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food1" class="check_label blur">Turkey (18-20 lbs)*</label>
<?php } else { ?>
<input value="Turkey (18-20 lbs)-B" title="" class="radio" id="food1" name="food[]" type="checkbox" />
      <label for="food1" class="check_label">Turkey (18-20 lbs)*</label>
<?php  }//if ?>
      <br />

<?php  
 if(in_array("Stuffing - 2 Bowls", $blur)) { ?>       
<input value="Stuffing - 2 Bowls" title="" class="radio" id="food2" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food2" class="check_label blur">Stuffing - 2 Bowls</label>
<?php } else { ?>
<input value="Stuffing - 2 Bowls" title="" class="radio" id="food2" name="food[]" type="checkbox" />
      <label for="food2" class="check_label">Stuffing - 2 Bowls</label>
<?php  }//if ?>
      <br />
 
 <?php
 if(in_array( "Dinner Rolls-A - 2 Doz", $blur)) {?>    
<input value="Dinner Rolls-A - 2 Doz" title="" class="radio" id="food3" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food3" class="check_label blurl">Dinner Rolls - 2 Doz</label>
<?php } else { ?>
<input value="Dinner Rolls-A - 2 Doz" title="" class="radio" id="food3" name="food[]" type="checkbox" />
      <label for="food3" class="check_label">Dinner Rolls - 2 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Dinner Rolls-B - 2 Doz", $blur)) {?>     
<input value="Dinner Rolls-B - 2 Doz" title="" class="radio" id="food4" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food4" class="check_label blur">Dinner Rolls - 2 Doz</label>
<?php } else { ?>
<input value="Dinner Rolls-A - 2 Doz" title="" class="radio" id="food4" name="food[]" type="checkbox" />
      <label for="food4" class="check_label">Dinner Rolls - 2 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Mini-Muffins - 4 Doz", $blur)) {?>     
<input value="Mini-Muffins - 4 Doz" title="" class="radio" id="food5" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food5" class="check_label blur">Mini-Muffins - 4 Doz</label>
<?php } else { ?>
<input value="Mini-Muffins - 4 Doz" title="" class="radio" id="food5" name="food[]" type="checkbox" />
      <label for="food5" class="check_label">Mini-Muffins - 4 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Corn - 2 Bowls", $blur)) {?>     
<input value="Corn - 2 Bowls" title="" class="radio" id="food6" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food6" class="check_label blur">Corn - 2 Bowls</label>
<?php } else { ?>
<input value="Corn - 2 Bowls" title="" class="radio" id="food6" name="food[]" type="checkbox" />
      <label for="food6" class="check_label">Corn - 2 Bowls</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("30 Corn Cob Halves", $blur)) {?>     
<input value="30 Corn Cob Halves" title="" class="radio" id="food7" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food7" class="check_label blur">30 Corn Cob Halves</label>
<?php } else { ?>
<input value="30 Corn Cob Halves" title="" class="radio" id="food7" name="food[]" type="checkbox" />
      <label for="food7" class="check_label">30 Corn Cob Halves</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Cheese Cubes Platter-A", $blur)) {?>     
<input value="Cheese Cubes Platter-A" title="" class="radio" id="food8" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food8" class="check_label blur">Cheese Cubes Platter</label>
<?php } else { ?>
<input value="Cheese Cubes Platter-A" title="" class="radio" id="food8" name="food[]" type="checkbox" />
      <label for="food8" class="check_label">Cheese Cubes Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Cheese Cubes Platter-B", $blur)) {?>     
<input value="Cheese Cubes Platter-B" title="" class="radio" id="food9" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food9" class="check_label blur">Cheese Cubes Platter</label>
<?php } else { ?>
<input value="Cheese Cubes Platter-B" title="" class="radio" id="food9" name="food[]" type="checkbox" />
      <label for="food9" class="check_label">Cheese Cubes Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Veggie Platter-A", $blur)) {?>     
<input value="Veggie Platter-A" title="" class="radio" id="food10" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food10" class="check_label blur">Veggie Platter</label>
<?php } else { ?>
<input value="Veggie Platter-A" title="" class="radio" id="food10" name="food[]" type="checkbox" />
      <label for="food10" class="check_label">Veggie Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Veggie Platter-B", $blur)) {?>     
<input value="Veggie Platter-B" title="" class="radio" id="food11" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food11" class="check_label blur">Veggie Platter</label>
<?php } else { ?>
<input value="Veggie Platter-B" title="" class="radio" id="food11" name="food[]" type="checkbox" />
      <label for="food11" class="check_label">Veggie Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Fruit Platter-A", $blur)) {?>     
<input value="Fruit Platter-A" title="" class="radio" id="food12" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food12" class="check_label blur">Fruit Platter</label>
<?php } else { ?>
<input value="Fruit Platter-A" title="" class="radio" id="food12" name="food[]" type="checkbox" />
      <label for="food12" class="check_label">Fruit Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Fruit Platter-B", $blur)) {?>     
<input value="Fruit Platter-B" title="" class="radio" id="food13" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food13" class="check_label blur">Fruit Platter</label>
<?php } else { ?>
<input value="Fruit Platter-B" title="" class="radio" id="food13" name="food[]" type="checkbox" />
      <label for="food13" class="check_label">Fruit Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Fruit Platter-C", $blur)) {?>     
<input value="Fruit Platter-C" title="" class="radio" id="food14" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food14" class="check_label blur">Fruit Platter</label>
<?php } else { ?>
<input value="Fruit Platter-C" title="" class="radio" id="food14" name="food[]" type="checkbox" />
      <label for="food14" class="check_label">Fruit Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Fruit Platter-D", $blur)) {?>     
<input value="Fruit Platter-D" title="" class="radio" id="food15" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food15" class="check_label blur">Fruit Platter</label>
<?php } else { ?>
<input value="Fruit Platter-D" title="" class="radio" id="food15" name="food[]" type="checkbox" />
      <label for="food15" class="check_label">Fruit Platter</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Gravy - 2 Bowls", $blur)) {?>     
<input value="Gravy - 2 Bowls" title="" class="radio" id="food17" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food17" class="check_label blur">Gravy - 2 Bowls</label>
<?php } else { ?>
<input value="Gravy - 2 Bowls" title="" class="radio" id="food17" name="food[]" type="checkbox" />
      <label for="food17" class="check_label">Gravy - 2 Bowls</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Veggie Casserole", $blur)) {?>     
<input value="Veggie Casserole" title="" class="radio" id="food18" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food18" class="check_label blur">Veggie Casserole ^</label>
<?php } else { ?>
<input value="Veggie Casserole" title="" class="radio" id="food18" name="food[]" type="checkbox" />
      <label for="food18" class="check_label">Veggie Casserole ^</label>
<?php  }//if ?>
      <br />
</div><!--//divider1-->
      
<div id="divider2">      
<?php 
 if(in_array("Swt Potato Casserole", $blur)) {?>           
<input value="Swt Potato Casserole" title="" class="radio" id="food19" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food19" class="check_label blur">Swt Potato Casserole ^</label>
<?php } else { ?>
<input value="Swt Potato Casserole" title="" class="radio" id="food19" name="food[]" type="checkbox" />
      <label for="food19" class="check_label">Swt Potato Casserole ^</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Potato Casserole", $blur)) {?>     
<input value="Potato Casserole" title="" class="radio" id="food20" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food20" class="check_label blur">Potato Casserole ^</label>
<?php } else { ?>
<input value="Potato Casserole" title="" class="radio" id="food20" name="food[]" type="checkbox" />
      <label for="food20" class="check_label">Potato Casserole ^</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Mashed Potatoes", $blur)) {?>     
<input value="Mashed Potatoes" title="" class="radio" id="food21" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food21" class="check_label blur">Mashed Potatoes ^</label>
<?php } else { ?>
<input value="Mashed Potatoes" title="" class="radio" id="food21" name="food[]" type="checkbox" />
      <label for="food21" class="check_label">Mashed Potatoes ^</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Dessert1 - 3 Doz", $blur)) {?>     
<input value="Dessert1 - 3 Doz" title="" class="radio" id="food22" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food22" class="check_label blur">Dessert - 3 Doz</label>
<?php } else { ?>
<input value="Dessert1 - 3 Doz" title="" class="radio" id="food22" name="food[]" type="checkbox" />
      <label for="food22" class="check_label">Dessert - 3 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Dessert2 - 3 Doz", $blur)) {?>     
<input value="Dessert2 - 3 Doz" title="" class="radio" id="food23" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food23" class="check_label blur">Dessert - 3 Doz</label>
<?php } else { ?>
<input value="Dessert2 - 3 Doz" title="" class="radio" id="food23" name="food[]" type="checkbox" />
      <label for="food23" class="check_label">Dessert - 3 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Dessert3 - 3 Doz", $blur)) {?>     
<input value="Dessert3 - 3 Doz" title="" class="radio" id="food24" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food24" class="check_label blur">Dessert - 3 Doz</label>
<?php } else { ?>
<input value="Dessert3 - 3 Doz" title="" class="radio" id="food24" name="food[]" type="checkbox" />
      <label for="food24" class="check_label">Dessert - 3 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Dessert4 - 3 Doz", $blur)) {?>     
<input value="Dessert4 - 3 Doz" title="" class="radio" id="food25" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food25" class="check_label blur">Dessert - 3 Doz</label>
<?php } else { ?>
<input value="Dessert4 - 3 Doz" title="" class="radio" id="food25" name="food[]" type="checkbox" />
      <label for="food25" class="check_label">Dessert - 3 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Dessert5 - 3 Doz", $blur)) {?>     
<input value="Dessert5 - 3 Doz" title="" class="radio" id="food26" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food26" class="check_label blur">Dessert - 3 Doz</label>
<?php } else { ?>
<input value="Dessert5 - 3 Doz" title="" class="radio" id="food26" name="food[]" type="checkbox" />
      <label for="food26" class="check_label">Dessert - 3 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Dessert6 - 3 Doz", $blur)) {?>     
<input value="Dessert6 - 3 Doz" title="" class="radio" id="food27" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food27" class="check_label blur">Dessert - 3 Doz</label>
<?php } else { ?>
<input value="Dessert6 - 3 Doz" title="" class="radio" id="food27" name="food[]" type="checkbox" />
      <label for="food27" class="check_label">Dessert - 3 Doz</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Apple Juice - 2 Gal", $blur)) {?>     
<input value="Apple Juice - 2 Gal" title="" class="radio" id="food28" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food28" class="check_label blur">Apple Juice - 2 Gal**</label>
<?php } else { ?>
<input value="Apple Juice - 2 Gal" title="" class="radio" id="food28" name="food[]" type="checkbox" />
      <label for="food28" class="check_label">Apple Juice - 2 Gal**</label>
<?php  }//if ?>
      <br />

 <?php 
 if(in_array("Apple Juice - 2 Gal", $blur)) {?>     
<input value="Apple Juice - 2 Gal" title="" class="radio" id="food28" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food28" class="check_label blur">Apple Juice - 2 Gal**</label>
<?php } else { ?>
<input value="Apple Juice - 2 Gal" title="" class="radio" id="food28" name="food[]" type="checkbox" />
      <label for="food28" class="check_label">Apple Juice - 2 Gal**</label>
<?php  }//if ?>
      <br />

 
 <?php 
 if(in_array("Water - 2 Gal", $blur)) {?>     
<input value="Water - 2 Gal" title="" class="radio" id="food29" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food29" class="check_label blur">Water - 2 Gal**</label>
<?php } else { ?>
<input value="Water - 2 Gal" title="" class="radio" id="food29" name="food[]" type="checkbox" />
      <label for="food29" class="check_label">Water - 2 Gal**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Coke - 2 Liter", $blur)) {?>     
<input value="Coke - 2 Liter" title="" class="radio" id="food30" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food30" class="check_label blur">Coke - 2 Liter**</label>
<?php } else { ?>
<input value="Coke - 2 Liter" title="" class="radio" id="food30" name="food[]" type="checkbox" />
      <label for="food30" class="check_label">Coke - 2 Liter**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Diet Coke - 2 Liter", $blur)) {?>     
<input value="Diet Coke - 2 Liter" title="" class="radio" id="food31" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food31" class="check_label blur">Diet Coke - 2 Liter**</label>
<?php } else { ?>
<input value="Diet Coke - 2 Liter" title="" class="radio" id="food31" name="food[]" type="checkbox" />
      <label for="food31" class="check_label">Diet Coke - 2 Liter**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Sprite - 2 Liter", $blur)) {?>     
<input value="Sprite - 2 Liter" title="" class="radio" id="food32" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food32" class="check_label blur">Sprite - 2 Liter**</label>
<?php } else { ?>
<input value="Sprite - 2 Liter" title="" class="radio" id="food32" name="food[]" type="checkbox" />
      <label for="food32" class="check_label">Sprite - 2 Liter**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Ginger Ale - 2 Liter", $blur)) {?>     
<input value="Ginger Ale - 2 Liter" title="" class="radio" id="food33" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food33" class="check_label blur">Ginger Ale - 2 Liter**</label>
<?php } else { ?>
<input value="Ginger Ale - 2 Liter" title="" class="radio" id="food33" name="food[]" type="checkbox" />
      <label for="food33" class="check_label">Ginger Ale - 2 Liter**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Lrg Ice Bag (Bucket/Tongs)", $blur)) {?>     
<input value="Lrg Ice Bag (Bucket/Tongs)" title="" class="radio" id="food34" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food34" class="check_label blur">Lrg Ice Bag (Bucket/Tongs)</label>
<?php } else { ?>
<input value="Lrg Ice Bag (Bucket/Tongs)" title="" class="radio" id="food34" name="food[]" type="checkbox" />
      <label for="food34" class="check_label">Lrg Ice Bag (Bucket/Tongs)</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Butter - 2 sticks", $blur)) {?>     
<input value="Butter - 2 sticks w/dish" title="" class="radio" id="food35" name="food[]" type="checkbox" disabled="disabled" />
      <label for="food35" class="check_label blur">Butter - 2 sticks w/dish</label>
<?php } else { ?>
<input value="Butter - 2 sticks w/dish" title="" class="radio" id="food35" name="food[]" type="checkbox" />
      <label for="food35" class="check_label">Butter - 2 sticks w/dish</label>
<?php  }//if ?>
      <br />
   </div><!--// divider2 -->   

    </div>
    
  </div>
  <div class="cfclear"> </div>
</div>


<div class="form_item_nonfood">
  <div class="form_element cf_checkbox">
    <label class="cf_label" style="width: 150px;">Non-Food Items</label>
<div id="divider3">
    <div class="float_left"> 
 <?php 
 if(in_array("2 Bx Purell Hand Wipes", $nfblur)) {?>     
      <input value="2 Bx Purell Hand Wipes" title="" class="radio" id="nonfood0" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood0" class="check_label blur">2 Bx Purell Wipes**</label>
<?php } else { ?>      
            <input value="2 Bx Purell Hand Wipes" title="" class="radio" id="nonfood0" name="nonfood[]" type="checkbox" />
      <label for="nonfood0" class="check_label">2 Bx Purell Hand Wipes**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Salt & Pepper - 2 Sets", $nfblur)) {?>     
<input value="Salt & Pepper - 2 Sets" title="" class="radio" id="nonfood1" name="nonfood[]" type="checkbox" />
      <label for="nonfood1" class="check_label">Salt & Pepper - 2 Sets**</label>
<?php } else { ?>
<input value="Salt & Pepper - 2 Sets" title="" class="radio" id="nonfood1" name="nonfood[]" type="checkbox" />
      <label for="nonfood1" class="check_label">Salt & Pepper - 2 Sets**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("Paper Towels - 2 Rolls", $nfblur)) {?>     
<input value="Paper Towels - 2 Rolls" title="" class="radio" id="nonfood2" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood2" class="check_label blur">Paper Towels - 2 Rolls**</label>
<?php } else { ?>
<input value="Paper Towels - 2 Rolls" title="" class="radio" id="nonfood2" name="nonfood[]" type="checkbox" />
      <label for="nonfood2" class="check_label">Paper Towels - 2 Rolls**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("1 Box Aluminum Wrap", $nfblur)) {?>     
<input value="1 Box Aluminum Wrap" title="" class="radio" id="nonfood3" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood3" class="check_label blur">1 Box Aluminum Wrap**</label>
<?php } else { ?>
<input value="1 Box Aluminum Wrap" title="" class="radio" id="nonfood3" name="nonfood[]" type="checkbox" />
      <label for="nonfood3" class="check_label">1 Box Aluminum Wrap**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("1 Box Ziploc Bags", $nfblur)) {?>     
<input value="1 Box Ziploc Bags" title="" class="radio" id="nonfood4" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood4" class="check_label blur">1 Box Ziploc Bags**</label>
<?php } else { ?>
<input value="1 Box Ziploc Bags" title="" class="radio" id="nonfood4" name="nonfood[]" type="checkbox" />
      <label for="nonfood4" class="check_label">1 Box Ziploc Bags**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("8 Table Decorations", $nfblur)) {?>     
<input value="8 Table Decorations" title="" class="radio" id="nonfood5" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood5" class="check_label blur">8 Table Decorations**</label>
<?php } else { ?>
<input value="8 Table Decorations" title="" class="radio" id="nonfood5" name="nonfood[]" type="checkbox" />
      <label for="nonfood5" class="check_label">8 Table Decorations**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("8 Plastic Tablecloths", $nfblur)) {?>     
<input value="8  PlasticTablecloths" title="" class="radio" id="nonfood6" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood6" class="check_label blur">8 Plastic Tablecloths**</label>
<?php } else { ?>
<input value="8 Plastic Tablecloths" title="" class="radio" id="nonfood6" name="nonfood[]" type="checkbox" />
      <label for="nonfood6" class="check_label">8 Plastic Tablecloths**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("120 Plates", $nfblur)) {?>     
<input value="120 Plates" title="" class="radio" id="nonfood7" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood7" class="check_label blur">120 Plates**</label>
<?php } else { ?>
<input value="120 Plates" title="" class="radio" id="nonfood7" name="nonfood[]" type="checkbox" />
      <label for="nonfood7" class="check_label">120 Plates**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("75 Large Cups", $nfblur)) {?>     
<input value="75 Large Cups" title="" class="radio" id="nonfood8" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood8" class="check_label blur">75 Large Cups**</label>
<?php } else { ?>
<input value="75 Large Cups" title="" class="radio" id="nonfood8" name="nonfood[]" type="checkbox" />
      <label for="nonfood8" class="check_label">75 Large Cups**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("60 Small Cups", $nfblur)) {?>     
<input value="60 Small Cups" title="" class="radio" id="nonfood9" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood9" class="check_label blur">60 Small Cups**</label>
<?php } else { ?>
<input value="60 Small Cups" title="" class="radio" id="nonfood9" name="nonfood[]" type="checkbox" />
      <label for="nonfood9" class="check_label">60 Small Cups**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("120 Forks", $nfblur)) {?>     
<input value="120 Forks" title="" class="radio" id="nonfood10" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood10" class="check_label blur">120 Forks**</label>
<?php } else { ?>
<input value="120 Forks" title="" class="radio" id="nonfood10" name="nonfood[]" type="checkbox" />
      <label for="nonfood10" class="check_label">120 Forks**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("120 Spoons", $nfblur)) {?>     
<input value="120 Spoons" title="" class="radio" id="nonfood11" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood11" class="check_label blur">120 Spoons**</label>
<?php } else { ?>
<input value="120 Spoons" title="" class="radio" id="nonfood11" name="nonfood[]" type="checkbox" />
      <label for="nonfood11" class="check_label">120 Spoons**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("120 Knives", $nfblur)) {?>     
<input value="120 Knives" title="" class="radio" id="nonfood12" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood12" class="check_label blur">120 Knives**</label>
<?php } else { ?>
<input value="120 Knives" title="" class="radio" id="nonfood12" name="nonfood[]" type="checkbox" />
      <label for="nonfood12" class="check_label">120 Knives**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("120 Napkins", $nfblur)) {?>     
<input value="120 Napkins" title="" class="radio" id="nonfood13" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood13" class="check_label blur">120 Napkins**</label>
<?php } else { ?>
<input value="120 Napkins" title="" class="radio" id="nonfood13" name="nonfood[]" type="checkbox" />
      <label for="nonfood13" class="check_label">120 Napkins**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("2 TV Tables", $nfblur)) {?>     
<input value="2 TV Tables" title="" class="radio" id="nonfood14" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood14" class="check_label blur">2 TV Tables**</label>
<?php } else { ?>
<input value="2 TV Tables" title="" class="radio" id="nonfood14" name="nonfood[]" type="checkbox" />
      <label for="nonfood14" class="check_label">2 TV Tables**</label>
<?php  }//if ?>
      <br />
 
 <?php 
 if(in_array("20 Large Trash Bags", $nfblur)) {?>     
<input value="20 Large Trash Bags" title="" class="radio" id="nonfood15" name="nonfood[]" type="checkbox" disabled="disabled" />
      <label for="nonfood15" class="check_label blur">20 Lrg Trash Bags**</label>
<?php } else { ?>
<input value="20 Large Trash Bags" title="" class="radio" id="nonfood15" name="nonfood[]" type="checkbox" />
      <label for="nonfood15" class="check_label">20 Lrg Trash Bags**</label>
<?php  }//if ?>
      <br />
    </div>
    
  </div>
  <div class="cfclear"> </div>
</div></div><!--//divider3-->


<div class="form_item_donate">
  <div class="form_element cf_checkbox">
    <label class="cf_label" style="width: 150px;">Donations</label>

  <div class="cfclear"> </div>
<div class="float_left">
<input value="$10 Donation" title="" class="radio" id="nonfood21" name="donation[]" type="checkbox" />
      <label for="nonfood21" class="check_label harvestDonate">I would like to donate $10.00 towards the table/chair rental. </label>
</div>
</div

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Submit" name="button_8" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>
<div class="form_item">
  <div class="form_element_note">* Bring Turkey carved on platter</div>
  <div class="cfclear"> </div>
</div>
<div class="form_item">
  <div class="form_element_note">^ 1 Large or 2 Small Bowls</div>
  <div class="cfclear"> </div>
</div>
<div class="form_item">
  <div class="form_element_note">**  Please bring these items at morning drop off on Tuesday, November 23</div>
  <div class="cfclear"> </div>
</div>

iamnameless 07 Jan, 2011
I am having issues with the form actually sending the checklisted data when using the internet explorer browser.
GreyHead 07 Jan, 2011
Hi iamnameless,

Please post a link to the form so we can take a quick look.

There's no reason why ChronoForms would submit form results differently in IE than in other browsers. If the HTML is good then the results should be OK. Turn on Debug in the Form General tab to see the $_POST array that is being submitted.

Bob
This topic is locked and no more replies can be posted.