how to pass the href variable to the switch case : i have four links  which are redirected on the same page only there variables are different for 
eg:

    <a href="tab1.php?type=square">Square</a>
    <a href="tab1.php?type=circle">Circle</a>
    <a href="tab2.php?type=triangle">Triangle</a>
    <a href="tab3.php?type=rectangle">Rectangle</a> 

 i want to write a switch case to pass the href variables so that if the type is square it should alert me that it is a square and similarly for the others.