无法在joomla 2.5.11中保存表单数据

时间:2013-06-17 10:31:53

标签: post joomla joomla2.5

我的表单如下:

<form class="form-validate" id="booking-form" name="form-booking" method="post" action="/component/booking/?view=booknig">
<div class="width-60 fltlft">
    <fieldset class="form-booking">
        <legend></legend>

        <ul>
            <li><input type="text" readonly="readonly" class="readonly" value="0" id="jform_id" name="jform[id]"></li>
            <li><input type="hidden" value="2013-06-17 10:15" name="jform[date_from]"></li>
            <li><input type="hidden" value="1" name="jform[service_id]"></li>
            <li><label class="" for="jform_phone" id="jform_phone-lbl">Telefon</label><input type="text" class="inputbox" value="" id="jform_phone" name="jform[phone]"></li>
            <li><label class="" for="jform_email" id="jform_email-lbl">Email</label><input type="text" class="inputbox" value="" id="jform_email" name="jform[email]"></li>
            <li><input type="hidden" value="" id="jform_checked_out" name="jform[checked_out]"></li>
            <li><input type="hidden" value="" id="jform_checked_out_time" name="jform[checked_out_time]"></li>
        </ul>
    </fieldset>
</div>
<input type="hidden" value="booking.save" name="task">
<input type="submit" class="button-submit" value="Send" name="Send">
<input type="hidden" value="1" name="e391ee49d5291fa9d566236f5c0a435e"> <div class="clr"></div>

</form>

并检索我正在使用的POST数据:

$jinput = JFactory::getApplication()->input;
$form_values = $jinput->post->get('jform');

但是当我要print_r $form_values时,我只会Array 在哪里我犯了错误

0 个答案:

没有答案