jeudi 14 décembre 2017

Symfony create checkbox and radio button manually without form generator

I need to create checkbox and radio button manually, without generator. This is my code :

          

That's my example code of checkbox,

please help how to create it properly and create submit action that can get all checked. I tried using this code on server side :

if ($request->isMethod('POST')) 
{
            $cbx_1 = $request->get("cbx_1");
}

and it too brute, please help me how to make it properly.

thanks




Aucun commentaire:

Enregistrer un commentaire