Hello There,
My problem is:
I have declared an empty PHP array.
and onsubmit of button I want to add the _post values to array at every time on my form.
I am working this in Yii framwork.
Array declred as:
$skill_values_array=array();
button code
<?php echo CHtml::submitButton(Yii::t($model, 'next'), array('id' => 'submitbutton')); ?>
and my JS code
<?php Yii::app()->getClientScript()->registerScript('hello',
' $(\'#submitbutton\').click(function(){
// HERE I WANT TO UPDATE MY ARRAY WITH VALUES GOT THROUGH FORM
});
');?>
How can I do this ?