Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <form method="post">
- <p>Step1: Choose a position</p>
- <select name="menu">
- <option value="1">Add a new employee</option>
- <option value="2">Show the employee list</option>
- <option value="3">Delete an employee</option>
- </select>
- <input type="submit" name="proc0" value="next"/>
- </form>
- <?php
- if (isset($_POST['proc0'])) {
- if ($_POST['menu'] == "1") {
- header("Location: http://127.0.0.1/course/hw2/selection");
- exit;
- }
- else if ($_POST['menu'] == "2") {
- header("Location: http://127.0.0.1/course/hw2/list");
- exit;
- }
- else {
- header("Location: http://127.0.0.1/course/hw2/delete");
- exit;
- }
- }
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment