<strong>
<?php
if(isset($_GET['object']))
{
switch( $_GET['object'] )
{
case 'car': echo 'You get in your car'; break;
case 'desk': echo 'You pound on the desk'; break;
case 'food': echo 'You eat some food you find on the floor'; break;
case 'money': echo 'You spend all your money'; break;
default: echo 'Invalid Object Selected'; break;
}
} else
echo 'Object Not Selected';
?>
</strong>
|