Hi,
I am trying to use switch statement to redirect user to another website when they select it from a drop down box.
please i need help on this to work .i have code here which i want you to help me out to work if possible.
Thanks.Clement Osei.Code:<html> <?php $my_links=" "; switch($my_links){ case"yahoo": echo "<a href='http://www.yahoo.com'></a>"; break; case"google": echo "< a href='http://www.google.com'></a>"; break; case"facebook": echo "<a href='http://www.facebook.com'></a>"; break; default: echo"you do not have the permission to thses links"; break; } ?> <form>; <select name="$my_links"> <option value="yahoo">Yahoo</option> <option value="googl">Google</option> <option value="facebook">Facebook</option> </select> </form> <html>