samedi 7 février 2015

Can I design radio buttons with PHP instead of repeating them

I work with forms that contain a lot of radio buttons. I'm actually obsessed with code re-factoring. What i wanna know is if i can just use FOREACH and an array of values to design the buttons instead of repeating the code for each option. Will this be an efficient method?





Aucun commentaire:

Enregistrer un commentaire