There are two ways to make query parameters:
First Method:
$params = array(
'name' => $request->getParameter('name'),
'email' => $request->getParameter('email'),
'message' => $request->getParameter('message'),
);
http_build_query($params);
Second Method:
$this->form = new ContactForm();
http_build_query($this->form->getValues());
Cheers!
Nice blog!! I hope you will share more info like this. I will use this for my studies and research. thanks a lot guys.
ReplyDeleteAi & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai