Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="content">
- <div id="textArea">
- How are you getting here? <br>
- <form action="gettinghere.php" method="post">
- <input type="radio" name="radiogroup" value="Car">Car<br>
- <input type="radio" name="radiogroup" value="Train">Train<br>
- <input type="radio" name="radiogroup" value="Bus">Bus<br>
- <input type="radio" name="radiogroup" value="Bicycle">Bicycle<br><br>
- <input type="radio" name="radiogroup" value>Other<br>
- <label for="othertransport"> Please Enter Any Other Means Of Transport Here </label><br>
- <input type="text" name="othertransport" /><br>
- <input type="submit" name="submit" />
- </form>
- </div>
- </div>
- <!-- ----------------------------------------------------------- -->
- <?php
- $transportType = $_POST['radiogroup'] ?: $_POST['othertransport'];
- echo "Thanks for your input, you are travelling here by $transportType";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement