Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div align="center">
- <table width="900" border="1">
- <tr>
- <td>
- <form name="to" method="post" action="testinfo.php">
- <select name="menu1">
- <option value="class_1" <? if($_POST['to'] == "All Users"){ ?> selected <? } ?>>All Users</option>
- <option value="class_2" <? if($_POST['to'] == "Inactive"){ ?> selected <? } ?>>Inactive</option>
- <option value="class_3" <? if($_POST['to'] == "Disabled"){ ?> selected <? } ?>>Disabled</option>
- <option value="class_4" <? if($_POST['to'] == "Unverified"){ ?> selected <? } ?>>Unverified</option>
- <option value="class_5" <? if($_POST['to'] == "Warned"){ ?> selected <? } ?>>Warned</option>
- </select>
- <label>
- <input type="submit" name="Submit" value="SHOW">
- </label>
- </form>
- </td>
- </tr>
- <tr>
- <td>
- <?php
- $to = '';
- echo "Traveling to $to<br />";
- switch ($_POST['to']){
- case "class_1":
- echo "Bring an extra $500";
- break;
- case "class_2":
- echo "Bring an open mind";
- break;
- case "class_3":
- echo "Bring 15 bottles of SPF 50 Sunscreen";
- break;
- case "class_4":
- echo "Bring lots of money";
- break;
- case "class_5":
- echo "Bring a swimsuit";
- break;
- default:
- echo "Bring lots of underwear!";
- break;
- }
- ?>
- </td>
- </tr>
- </table>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement