<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>
<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
if ($_POST("radiogroup") == "Car")
{
echo 'Thanks for your input, you are travelling here by '.$_POST[ "radiogroup"];
}
if ($_POST("radiogroup") == "Bus")
{
echo 'Thanks for your input, you are travelling here by '.$_POST["radiogroup"];
}
if ($_POST("radiogroup") == "Train")
{
echo 'Thanks for your input, you are travelling here by '.$_POST["radiogroup"];
}
if ($_POST("radiogroup") == "Bicycle")
{
echo 'Thanks for your input, you are travelling here by '.$_POST["radiogroup"];
}
else {
echo 'Thanks for your input, you are travelling by '. $_POST["othertransport"];
}
?>