CTabView doesnt submit form on the next second tab and so on?

Hi, I’m using CTabView with forms inside each tab.

The problem is, only the form of the first tab gets submitted with the form action, the second tab and so on doesn’t get sumbitted with the HTML request upon clicking submit button (I checked the POST using firebug).

Does anybody know how to get the second tab form to POST data also?

Thanks

fyi: i use just 1 submit button, outside of the CTabView

Here’s my view code snippet




<?php $form=$this->beginWidget('CActiveForm', array(

	'id'=>'project-pricing-form',

	'enableAjaxValidation'=>false,

)); ?>




<div class="form">

<?php echo $form->errorSummary(array($brief,$user,$loginForm)); ?>


<div class="row">

	<?php echo $form->labelEx($brief,'field',array('class'=>'label')); ?>

	<div class="textField">

		<?php echo $form->textField($projectBrief,'field',array('size'=>60,'maxlength'=>160,'class'=>'textField')); ?>

		<?php echo $form->error($projectBrief,'field'); ?><br />

	</div>

	<div style="clear: both;"></div>

</div>


...




<?php

	$this->widget('CTabView',array(

		'activeTab'=>'tab2',

		'tabs'=>array(

			'tab2'=>array(

				'title'=>'Login',

				'view'=>'tabs/_login',

				'data'=>array('loginForm'=>$loginForm)

			),

			'tab1'=>array(

				'title'=>'Register',

				'view'=>'tabs/_register',

				'data'=>array('user'=>$user)

			),

			

		),

		'htmlOptions'=>array(

			'style'=>'width:540px; margin-left: -10px;'

		)

	));

?>

	

</div><!--end of form div-->

<?php echo CHtml::submitButton('',array('class'=>'nextbutton')); ?>


<?php $this->endWidget(); ?>



_login.php :




<?php $form=$this->beginWidget('CActiveForm', array(

	'id'=>'login-form',

	'enableClientValidation'=>false,

)); ?>

<?php echo $form->errorSummary($loginForm,'<p>Login Salah :</p>'); ?>

<div class="row">

	<?php echo $form->labelEx($loginForm,'username',array('class'=>'label')); ?>

	<?php echo $form->textField($loginForm,'username',array('class'=>'textField')); ?>

	<div style="clear:both;"></div>

</div>


...


<?php $this->endWidget(); ?>



_register.php :




<?php

	$form=$this->beginWidget('CActiveForm', array(

		'id'=>'user-form',

		'enableAjaxValidation'=>false,

	));

?>		

<?php echo $form->errorSummary($user,'<p>Silahkan perbaiki kesalahan berikut terlebih dahulu :</p>'); ?>

<div class="row">

	<?php echo CHtml::activeLabelEx($user, 'verifyCode',array('class'=>'label'));?>

	<?php echo CHtml::activeTextField($user, 'verifyCode', array('class'=>'textField'));?>

	<div style="clear:both;"></div>

</div>


...


<?php $this->endWidget(); ?>