Hello,
I'm trying write a form where users will select a series of yes or no buttons. Although I have the visual idea for it, I've got no clue on how the backend of this should. I have all of my database connections setup, but I don't know what the php backend should look like.
I want it to do this:
Blah - Yes or No (Checkbox representation - use your imagination here. 🙂)
Blah_else - Yes or No (Checkbox representation - use your imagination here. 🙂)
Blah_else_else - Yes or No (Checkbox representation - use your imagination here. 🙂)
Then in the submission form action page I want it to do something like -
If ($_POST['blah'] == 'selected_yes') {
$blah = '1';
}
If ($_POST['blah_else'] == 'selected_yes') {
$blah = '1';
}
If ($_POST['blah_else_else'] == 'selected_yes') {
$blah = '1';
}
I'm just not sure how to get it to recognize if it's selected as yes.
Any help is appreciated!