Menu
hi to all!
how to links php pages with select statement. is it the right way. if yes?
then why it is not working with links in php.
<?php
//selector.php
switch ($action)
{
case “order_food”:
include “hotel.php”;
break;
case “play_hangman”:
include “play.php”;
break;
default:
echo “Please choose what you’d like to do:<BR>”;
echo “<A HREF=<?php action=order_food>Order Food</A><BR>”;
echo “<A HREF=?action=play_hangman>Play</A>”;
}
?>
it display the error message like variable $option not declared.
thanx for any response. . .