Hello,
I have 2 checkBoxes in a form :
{check0} and {check1} with just one possibility for each one. For exemple:
"Are you a smoker?" [ ] Yes ({check0})
"Will you take the train?" [ ] Yes ({check1})
And that's it.
What I would like to do is :
It always answer "No".
But it's not working, I tried everything even using directly {check1} instead of $check1.
If I use some echo to see what's in {check1} it answer "Yes" if the CheckBox was checked in the form and {check1} if it was not.
To me it makes no sense, any help would be great, I've spent all my monday on this π
I have 2 checkBoxes in a form :
{check0} and {check1} with just one possibility for each one. For exemple:
"Are you a smoker?" [ ] Yes ({check0})
"Will you take the train?" [ ] Yes ({check1})
And that's it.
What I would like to do is :
<?php
$check1 = "{check1}";
if ($check1 == "Yes")
{
echo "Yes";
}else{
echo "No";
}
?>
It always answer "No".
But it's not working, I tried everything even using directly {check1} instead of $check1.
If I use some echo to see what's in {check1} it answer "Yes" if the CheckBox was checked in the form and {check1} if it was not.
To me it makes no sense, any help would be great, I've spent all my monday on this π