View Single Post
Old 12-16-2012, 03:46 PM   PM User | #15
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
PHP Code:

$santa_snacks 
clean_up($_POST['santa_snacks']);

switch 
$santa_snacks
{

  case 
"cookies":
         echo 
"I like cookies, thank you! HO HO HO ";
         break;

  case 
"candy":
         echo 
"The more candy the better, thank you! HO HO HO";
         break;

  case 
"pie":
         echo 
"I can never get enough pie, thank you! HO HO HO";
         break;

  case 
"cake":
         echo 
"You must have been good for goodness sake, thanks for the cake! HO HO HO";
         break;

  case 
"milk":
         echo 
"I needed that to wash down my cake, pie, cookies and candy. Thank you! HO HO HO";
         break;

  case 
"everyone":
         echo 
"However you celebrate this holiday season, may you have a good one and wishing you all the very best";
         break;

  default:
          echo 
"Happy New Years as well, be safe all";
          break;

}
//end switch 
durangod is offline   Reply With Quote
Users who have thanked durangod for this post:
tangoforce (12-16-2012)