Hi all. ( First of all i want to thank you for this lovely work )
I have a problem
my view file
<br>test<br>
<div class="yiiForm">
<?php echo CHtml::beginForm(); ?>
<?php echo CHtml::errorSummary($model); ?>
<div class="simple">
<?php echo CHtml::activeLabel($model,‘name’); ?>
<?php echo CHtml::activeTextField($model,‘name’); ?>
</div>
<div class="action">
<?php echo CHtml::submitButton(‘Retrieve’); ?>
</div>
<?php echo CHtml::endForm(); ?>
</div><!-- yiiForm -->
[b]
and my controller[/b]
public function actionTest()
{
$model=new TestForm;
$results="";
if(isset($_POST['TestForm']))
{
$model->attributes=$_POST['TestForm'];
$name= $_POST['name'];
if($model->validate())
$results = shell_exec('/var/www/cgi-bin/test.pl' . ($_POST['name']));
$this->redirect(array('index'));
}
$this->renderPartial('test',array('model'=>$model));
}
when i post the form givin error as you can see it at bellow
what is my wrong
Description
Undefined index: name
00128: $name= $_POST[‘name’];
thanks for help…
Neel