Answers for "php $_post switch case"

PHP
0

php $_post switch case

<?php
  if (isset($_POST[beermoney])){$i = $_POST[beermoney]};
switch ($i) {
    case 0:
        echo "get a job";
        break;
    case 1:
        echo "buy draft beer";
        break;
    case 2:
        echo "drink budwieser";
        break;
}
?>
Posted by: Guest on December-26-2020

Browse Popular Code Answers by Language