Tuesday 17 January 2012

Switch_Statement

A switch statement is used to display the correct prompt.
which is depending on the types submitted.Links are generated to conforms the dletye proceess.
The link ito conform the process diects back to current page with the same URL.


EXAMPLE OF CODE




1)Sunday
2)Monday
3)Tuesday
4)Wednesday
5)Thursday
6)Friday
7)Saturday







$day=$_post ['num'];

switch($day){

case'1':

echo"Sunday";

break;

case'2':

echo"monday";

break;

case'3':

echo"Tuesday";

break;

case'4':

echo"Wedneday";

case'5':

echo"Thursday";

break;

case'6':

echo"Friday";

break;

case'7':

echo"Saturday";

break;

default:

echo"invalid number";

}
?>


























































SEO LINK BUILDING
IMPORTANT OF KEYWORD
INCREASE TRAFFIC YOUR BLOG
BOOST YOUR BACKLINKS WITH ARTICLES SUBMISSION

No comments:

Post a Comment