Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Homework 1</title>
- </head>
- <body>
- <h1 align="right">Homework 1</h1>
- <form action="demo_form.asp" method="get" align="right">
- User name: <input type="text" name="uname"><br>
- Password: <input type="text" password="pw"><br>
- Full Name: <input type="text" name="fname"><br>
- Home address: <input type="text" address="address"><br>
- Age: <input type="text" age="age"><br>
- Phone #: <input type="text" number="phonenumber"><br>
- Gender:
- <input type="radio" name="gender" value="male">
- Male
- <input type="radio" name="gender" value="female">
- Female<br>
- Years of College: <select>
- <option value="Freshman">Freshman</option>
- <option value="Sophmore">Sophmore</option>
- <option value="Junior">Junior</option>
- <option value="Senior">Senior</option>
- </select><br>
- <input type="submit" value="Submit">
- </form>
- <?php
- Username: <?php echo $_POST["uname"] '<br>'; ?><br>
- Email: Your email address is: <?php echo $_POST["pw"] '<br>'; ?>
- Full Name: <?php echo $_POST["fname"] '<br>'; ?>
- Home address: <?php echo $_POST["address"] '<br>'; ?>
- Age: <?php echo $_POST["age"] '<br>'; ?>
- Phone #: <?php echo $_POST["phonenumber"] '<br>'; ?>
- Gender: <?php echo $_POST["gender"] '<br>'; ?>
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement