Forums

Checkboxes aren't storing data

littlebridge 27 Feb, 2009
Hi There,

sorry if I'm asking a question, that you have most likely already answered, but the other topics and answers haven't helped me. I have two checkboxes in my form, each with various options. I really need to be able to see which options people choose, but the form is not storing that information for me in the database. The whole chronoforms tool is really complicated in my opinion, but the other forms programs are just as useless. I've decided to go with this one as I've spent the most time with it and it can export a database - if only I can get it to store the information from the checkboxes.

Here is one of the pieces of the code if that is helpful
<div class="form_item">
  <div class="form_element cf_checkbox">
    <label class="cf_label" style="width: 225px;">How will you travel? (Check all that apply)</label>
    <div class="float_left">
      <input value="Drive our own car" class="radio radio radio radio validate-one-required" id="Drive_our_own_car" name="travel[]" type="checkbox" />
      <label for="Drive_our_own_car" class="check_label">Drive our own car</label>
      <br />
      
<input value="Fly to Las Vegas" class="radio radio radio radio validate-one-required" id="Fly_to_Las_Vegas" name="travel[]" type="checkbox" />
      <label for="Fly_to_Las_Vegas" class="check_label">Fly to Las Vegas</label>
      <br />
      
<input value="Rent out own car" class="radio radio radio radio validate-one-required" id="Rent_out_own_car" name="travel[]" type="checkbox" />
      <label for="Rent_out_own_car" class="check_label">Rent out own car</label>
      <br />
      
<input value="Share a ride if possible" class="radio radio radio radio validate-one-required" id="Share_a_ride_if_possible" name="travel[]" type="checkbox" />
      <label for="Share_a_ride_if_possible" class="check_label">Share a ride if possible</label>
      <br />
Max_admin 27 Feb, 2009
Hi littlebridge,

with V3.1 RC2 and if you have "Chronoforms handles my posted arrays" > yes, and you have a table field called "travel" then this should work fine out of the box, tell me how do you have it configured ?

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.