Getquery() Not Getting Variables From Url

I have a form that submits to another view and the URL is /bookings/passList?Bookings%5BcustomerID%5D=1&Bookings%5BflightID%5D=3&Bookings%5BseatsRequested%5D=4&Bookings%5BbookingTimestamp%5D=131313-0808-2020+13%3A08%3A11&Bookings%5BipAddress%5D=24.73.149.138&yt0=Continue

I tried using


echo Yii::app()->getRequest()->getQuery('flightID');

but it is not working even though in the URL it is showing it should be 3

Here is my action for the form that submits:


public function actionCreateBooking()

	{

		$model=new Bookings;


		// Uncomment the following line if AJAX validation is needed

		// $this->performAjaxValidation($model);

		

		if(isset($_POST['Bookings']))

		{

			$model->attributes=$_POST['Bookings'];

			if($model->save()) {


				$this->redirect(array("bookings/dashboard"));}

				

		}


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

			'model'=>$model,

		));

	}

and this is for the receiving view:


public function actionPassList()

	{

		$model=new Bookings;


		// Uncomment the following line if AJAX validation is needed

		// $this->performAjaxValidation($model);




		if(isset($_POST['Bookings']))

		{

			$model->attributes=$_POST['Bookings'];

				

		}


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

			'model'=>$model,

		));

	}

Am I missing something that is not allowing me to grab the variables?

Those variables are:




Bookings[customerID]=1

Bookings[flightID]=3

Bookings[seatsRequested]=4

Bookings[bookingTimestamp]=131313-0808-2020+13%3A08%3A11

Bookings[ipAddress]=24.73.149.138

yt0=Continue



So you have to address them as:




echo Yii::app()->getRequest()->getQuery('Bookings[flightID]');



or just:




echo $_GET['Bookings']['flightId'];



BTW Why are you submitting this form as GET not POST?