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





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

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







//renders the first form






am i doing it correctly needed advice urgently