Innanzitutto un bel ciao a tutti e complimenti per il lavoro svolto.
Ok dopo la sviolinata eccomi qui a chiedervi un mega aiuto con Chronoforms.
Ho un cliente che ha necessità di un sito web per il proprio ristorante in cui sia possibile ordinare tramite sito le quantità di ogni singola pietanza (pietanze pre inserite su una tabella).
Il tutto poi deve arrivare via email alla cucina.
Ho creato il form per l'inserimento e nessun problema.
Il problema si pone nella creazione dell'email di invio con pietanza e quantità.
O meglio non inserisce il valore pietanza nel form email ma solo la quantità.
Vi allego il codice del secondo form (quello delle prenotazioni
<?php
$db =& JFactory::getDBO();
$query = "
SELECT text_1, text_2, text_3, text_4, text_5, text_6, text_7, text_8, text_9, text_10, text_11, text_12, text_13, text_14, text_15, text_16, text_17, text_18, text_19, text_20
FROM `#__chronoforms_ins_menu`WHERE `cf_id` = 1";
$db->setQuery($query);
$nomes = $db->loadAssocList();
foreach ( $nomes as $v ) {
$pie1 = $v['text_1'];
$pie2 = $v['text_2'];
$pie3 = $v['text_3'];
$pie4 = $v['text_4'];
$pie5 = $v['text_5'];
$pie6 = $v['text_6'];
$pie7 = $v['text_7'];
$pie8 = $v['text_8'];
$pie9 = $v['text_9'];
$pie10 = $v['text_10'];
$pie11 = $v['text_11'];
$pie12 = $v['text_12'];
$pie13 = $v['text_13'];
$pie14 = $v['text_14'];
$pie15 = $v['text_15'];
$pie16 = $v['text_16'];
$pie17 = $v['text_17'];
$pie18 = $v['text_18'];
$pie19 = $v['text_19'];
$pie20 = $v['text_20'];
}
?>
<div class="form_item">
<div class="form_element cf_heading">
<h1 align="center" class="cf_text">Prenotazione Menu del giorno</h1>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text">
<div align="left"><span class="cf_text"><strong>Pietanze</strong></span></div>
</div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text">
<div align="center"><span class="cf_text"><strong>Quantità</strong></span></div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" nowrap style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text">
<div align="left"><span class="cf_text"><?php echo $pie1;?></span> </div>
</div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" align="center" style="77%: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_26" name="qta1" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text">
<div align="left"><span class="cf_text"><?php echo $pie2;?></span> </div>
</div>
<div class="cfclear"> </div>
</div>
</td>
<td style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_28" name="qta2" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text">
<div align="left"><span class="cf_text"><?php echo $pie3;?></span> </div>
</div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_39" name="qta3" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text">
<div align="left"><span class="cf_text"><?php echo $pie4;?></span> </div>
</div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_33" name="qta4" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie5;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_38" name="qta5" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie6;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_37" name="qta6" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie7;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_36" name="qta7" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie8;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_35" name="qta8" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie9;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_32" name="qta9" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie10;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_45" name="qta10" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie11;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_43" name="qta11" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie12;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_34" name="qta12" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie13;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_44" name="qta13" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie14;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_42" name="qta14" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie15;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_41" name="qta15" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie16;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_40" name="qta16" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie17;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_30" name="qta17" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie18;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_31" name="qta18" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie19;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_29" name="qta19" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_multiholder" style="margin-left:0px!important;">
<label class="cf_label" style="display: none;"></label>
<table cellspacing="0" cellpadding="0" width="95%" title="" class="multi_container">
<tbody width="100%">
<tr width="100%">
<td width="23%" style="width: auto; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><?php echo $pie20;?></span> </div>
<div class="cfclear"> </div>
</div>
</td>
<td width="77%" style="width: 77%; vertical-align: middle; text-align: left;">
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="display: none;"></label>
<div align="center">
<input class="cf_inputbox validate-number" maxlength="2" size="2" title="" id="text_27" name="qta20" type="text" />
</div>
</div>
<div class="cfclear"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<div align="center">
<input value="Prenota!" name="button_64" type="submit" />
<input type="reset" name="reset" value="Reset"/>
</div>
</div>
<div class="cfclear"> </div>
</div>
</tr>
</tbody>
</table>
</div>
<div class="cfclear"> </div>
</div>
Sono sicuro che mi manca qualcosa ma onestamente non so bene cosa
Grazie in anticipo per le risposte