Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="/navstyle.css">
- </head>
- <body>
- <div class="topnav">
- <a href="home.php">Home</a>
- <a href="a_login.php">News</a>
- <a href="a_contact.php">Contact</a>
- <a href="a_about.php">About</a>
- </div>
- <h1>
- A form that sends data to itself
- </h1>
- <form action="" method="get">
- <label>Your choice is </label><input type = 'text' name='choice'><br>
- <input type = "submit" name="submit">
- </form>
- <p>
- <?php
- $basu = $_GET['choice'];
- echo $basu;
- if ($basu == "jaws") {
- echo " really scary film";
- }
- ?>
- </p>
- </body>
- </html>
Add Comment
Please, Sign In to add comment