multiple forms or nested forms

hi i wanted to use different forms for the same AR model so that I get some input in the first form then populate the dropdown in the second form and when all the input in form1 and form2 are given then save it to the table associated with the model.unable to do kindly advice.

public function actionCreate()


{


	$model=new Booking;

// the first form

	if(isset($_POST['check']))//check is a submit button in form1


	{


		$this->render('_createform2',array('model'=>$model,));	


	


	}


	elseif  (isset($_POST['Book']))// book is a submit button in form2


		{	$model->attributes=$_POST['Booking'];





		if($model->save())


			$this->redirect(array('view','id'=>$model->id));


		}


	


	else


	{

//renders the first form

	$this->render('create',array(


		'model'=>$model,


	));


	}


}

am i doing it correctly needed advice urgently