<input type="submit" name="submit" value="no">
<input type="submit" name="submit" value="yes">
switch ($_POST['submit'])
{
case 'no' :
echo "нет";
break;
case 'yes' :
echo "да";
break;
}
<input type="submit" name="submit" value="no">
<input type="submit" name="submit" value="yes">
$submit = $_POST['submit'] ?? false;
if($submit){
switch ($submit )
{
case 'no' :
echo "нет";
break;
case 'yes' :
echo "да";
break;
}
header('Refresh: 1; ?');
}