Form processing results
Posted: Mon Jun 24, 2019 7:20 pm
I have a form built, it includes Editbox, comb box, check box, and radio buttons.
I have the results processing..
Name: $name <-- Edit box (working)
Phone: $phone <-- Edit box (working)
Burger type: $burgertype <-- Combo box (working)
Bread: $bread <-- Radio button (working)
Topping: $Bacon <--Checkbox
Topping: $Cheese <--Checkbox
Topping: $Onion <--Checkbox
Side item: $sideitem <-- Combo box (working)
The check boxes are where I'm having trouble. I don't want it to appear in the results if the checkbox wasn't checked.
Currently the results are coming back like this...
Name: Joe<-- Edit box (working)
Phone: 1234 <-- Edit box (working)
Burger type: Turkey Burger <-- Combo box (working)
Bread: white bun <-- Radio button (working)
Topping: Bacon <-- selected checkbox result looks correct
Topping: $Cheese <-- Did not select checkbox, results show variable (I want this whole line hidden if not selected in form)
Topping: $Onion <-- Did not select checkbox, results show variable (I want this whole line hidden if not selected in form)
Is there a way to exclude the unchecked checkboxes from the results?
I have the results processing..
Name: $name <-- Edit box (working)
Phone: $phone <-- Edit box (working)
Burger type: $burgertype <-- Combo box (working)
Bread: $bread <-- Radio button (working)
Topping: $Bacon <--Checkbox
Topping: $Cheese <--Checkbox
Topping: $Onion <--Checkbox
Side item: $sideitem <-- Combo box (working)
The check boxes are where I'm having trouble. I don't want it to appear in the results if the checkbox wasn't checked.
Currently the results are coming back like this...
Name: Joe<-- Edit box (working)
Phone: 1234 <-- Edit box (working)
Burger type: Turkey Burger <-- Combo box (working)
Bread: white bun <-- Radio button (working)
Topping: Bacon <-- selected checkbox result looks correct
Topping: $Cheese <-- Did not select checkbox, results show variable (I want this whole line hidden if not selected in form)
Topping: $Onion <-- Did not select checkbox, results show variable (I want this whole line hidden if not selected in form)
Is there a way to exclude the unchecked checkboxes from the results?