switch php POST[''] code example
Example: 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;
}
?>