Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

2 Post On Cactiveform

$
0
0
i have form
<?php 
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'step3-form',
	'enableClientValidation'=>false,
        "enableAjaxValidation"=>true,
        'clientOptions'=>array(
		'validateOnSubmit'=>true,
                'validateOnChange'=>false,
                
	),
	
));?>
<tr>
		    <td class="inputs"><?php echo $form->checkBoxList($model, 'docs', array('cert_exist'=>Yii::t("timeshare",'Сертификат на таймшер'),'contract_exist'=>Yii::t("timeshare",'Контракт о приобретении сертификата на таймшер'),'nodoc_exist'=>Yii::t("timeshare",'У меня не сохранились документы')),array('class'=>'inputs')); ?></td>
		  </tr>
		  <tr>
		    <td class="inputs"><?echo $form->error($model,'docs'); ?></td>
                  </tr>
 <div class="clear" style="width:220px;">
             <?php echo CHtml::submitButton(Yii::t("timeshare","<< Назад "),array("class"=>"button")); ?>
               <?php echo CHtml::submitButton(Yii::t("timeshare","Далее >>"),array("class"=>"button")); ?>
		
	</div>
<?php $this->endWidget(); ?>

when i click submitButton i have 2 POST

InfoForm[docs]:
InfoForm[docs][]:cert_exist
ajax:step3-form
yt1:Далее >>

and 4 second i have 2 POST
InfoForm[docs]:
InfoForm[docs][]:cert_exist
yt1:Далее >>

can i delete 1 post ?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>