PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi there, I'm new to PHP and this is just a practise script... not important but if anyone could point out where I'm going wrong I'd appreciate it. Basically the script doesn't seem to do anything... doesn't get any error messages either...
<?php
if (isset($_GET['submit'])) {
switch ($_GET['select']) {
case 'sloth':
echo "Sloth's are boring";
break;
case 'llama':
echo "Llama's are ok I guess";
break;
case 'monkey':
echo "Yeah, monkeys are cool!";
break;
case 'giraffe':
echo "Giraffe's are a bit wierd";
break;
default:
echo "Please choose don't choose Whale or Moth. No reason, just choose something else.";
}
}
?>