Radiobuttons and PHP
Posted: Wed Dec 11, 2019 8:00 pm
Hello @Pablo,
maybe a stupid question, but I can“t find it...
I would like to have radiobuttons to be checked by php.
Therefore I created a form and added into that form two radiobuttons rb1 value = 'rb_name1', rb2 value = 'rb_name2'.
Both are member of the same group 'rb_group'.
If one is on the other is off. This works fine in the browser, but checking in PHP
isset($_POST['rb_name1']) always returns that 'rb_name1' (or 'rb_name1' or 'rb_group') is not present.
Do you have a description how to do this properly?
Thanks, Martin
maybe a stupid question, but I can“t find it...
I would like to have radiobuttons to be checked by php.
Therefore I created a form and added into that form two radiobuttons rb1 value = 'rb_name1', rb2 value = 'rb_name2'.
Both are member of the same group 'rb_group'.
If one is on the other is off. This works fine in the browser, but checking in PHP
isset($_POST['rb_name1']) always returns that 'rb_name1' (or 'rb_name1' or 'rb_group') is not present.
Do you have a description how to do this properly?
Thanks, Martin