Feb 7th, 2017, 7:53 AM
Figured I would post the solution to the issue with "1" being echoed.
Slight change:
if (isset($_POST["your_submit_btn_name"])) {
$_POST["cb_name"] = (isset($_POST["cb_name"])) ? "WhateverYouWantToEcho" : "";
}
The check logic goes, "when the user hits the submit button, test if the field (checkbox) is checked, if yes, echo this, if not, echo that."
Slight change:
if (isset($_POST["your_submit_btn_name"])) {
$_POST["cb_name"] = (isset($_POST["cb_name"])) ? "WhateverYouWantToEcho" : "";
}
The check logic goes, "when the user hits the submit button, test if the field (checkbox) is checked, if yes, echo this, if not, echo that."