I built a form with some some text fields and drop down boxes populated via a MySQL request.
I fill my textfields and I select my fields from the listbox, nice
but when I have a look at the records within the chronoforms_form_xxxx table I only find the text fields. The selected fields coming from the dropdown list are not present
With that I retrieve something within the right field of the record
And with that the select field of the record is empty
and here the print of the record
cf_id uid recordtime ipaddress cf_user_id text_5 text_8 text_9 text_10 text_11 select_3 select_4 select_5 select_6 text_12
2 IOTJjYWQ4ZTA1Y2E3 2009-02-05 - 15:05:52 127.0.0.1 0 A 10:10 11:11 5 0 xcvxvwxvxcxcvwxcvv
I'm lost
I fill my textfields and I select my fields from the listbox, nice
but when I have a look at the records within the chronoforms_form_xxxx table I only find the text fields. The selected fields coming from the dropdown list are not present
With that I retrieve something within the right field of the record
<DIV class=form_item >
<DIV class="form_element cf_textbox" >
<LABEL class=cf_label >Palanquée n° :</LABEL>
<INPUT class="cf_inputbox required validate-digits" id=text_5 maxLength=2 size=2 name=text_5 >
<A class=tooltiplink onclick="return false;" ><IMG class=tooltipimg height=16 src="components/com_chronocontact/css/images/tooltip.png" width=16 border=0 ></A>
<DIV class=tooltipdiv >Palanquée n° : :: Numéro d'ordre de la palanquée</DIV>
</DIV>
<DIV class=clear > </DIV></DIV>
And with that the select field of the record is empty
DIV class=form_item >
<DIV class="form_element cf_dropdown" >
<LABEL class=cf_label >Sélectionner le guide :</LABEL>
<?php
$db =& JFactory::getDBO();
$query = " SELECT name
FROM jos_users
INNER JOIN jos_comprofiler ON ( jos_users.id = jos_comprofiler.id )
WHERE (
cb_niveauencadrement <> ' '
)
OR (
cb_niveauplongeur = 'Niveau 4'
) ";
$db->setQuery($query);
$rows = $db->loadResultArray();
?>
<SELECT class="cf_inputbox validate-selection" id=select_5 size=3 name=select_5 >
<?php
foreach ($rows as $current) {
echo "<option value='$row'>$current</option>";
}
?>
</select>
<A class=tooltiplink onclick="return false;" ><IMG class=tooltipimg height=16 src="components/com_chronocontact/css/images/tooltip.png" width=16 border=0 ></A>
<DIV class=tooltipdiv >Sélectionner le guide : :: Guide ou moniteur</DIV>
</DIV>
<DIV class=clear > </DIV></DIV>
and here the print of the record
cf_id uid recordtime ipaddress cf_user_id text_5 text_8 text_9 text_10 text_11 select_3 select_4 select_5 select_6 text_12
2 IOTJjYWQ4ZTA1Y2E3 2009-02-05 - 15:05:52 127.0.0.1 0 A 10:10 11:11 5 0 xcvxvwxvxcxcvwxcvv
I'm lost