"; } //all other directions have a pit in them if ($_POST['left']) { echo "You fell into a pit and died!"; } if ($_POST['forward']) { echo "You fell into a pit and died!"; } if ($_POST['back']) { echo "You fell into a pit and died!"; } ?>