Código PHP:
<?php
$testVarOne = (bool)"1";
$testVarTwo = (bool)"1";
$testVarThree = (bool)"1";
if(($testVarOne & $testVarTwo & $testVarThree) == 0x0001)
{
echo "All TRUE";
}
else
{
echo "There is some FALSE in there";
}
?>
Para
'No' el valor de $_POST["....."] debe de ser 0 y para
'Si' debe ser 1.
Al final se podra quedar en:
Código PHP:
<?php
///
/// The values of $_POST["option1"], $_POST["option2"], $_POST["option3"] must be 0 or 1
///
$testVarOne = isset($_POST["option1"]) ? (bool)$_POST["option1"] : 0;
$testVarTwo = isset($_POST["option2"]) ? (bool)$_POST["option2"] : 0;
$testVarThree = isset($_POST["option3"]) ? (bool)$_POST["option3"] : 0;
if(($testVarOne & $testVarTwo & $testVarThree) == 0x0001)
{
header ("Location: formularioDeVertificacion.php");
}
else
{
echo "No cumple con los requerimientos.";
}
?>
Espero que te sirva.
Saludos.