Below is some simple PHP coding, but i cant see what im doing wrong with it. Can anyone guide me as to where my balls up is please? The submit button is working but when i am hitting submit its just displaying $camelChoice"; ?>
HTML
PHP Response
Any help hugely appreciated.
HTML
Code:
<form action="adopt.php" method="get">
<p>
Select your camel type:
</p>
<select name="CamelType">
<option value="MaleBac">Male Bactrian</option>
<option value="FemaleBac">Female Bactrian</option>
<option value="MaleDrom">Male Dromedary</option>
<option value="FemaleDrom">Female Dromedary</option>
</select>
</form>
PHP Response
Code:
<?php
$camelChoice = $_GET['CamelType'];
echo "<p>Camel Type: $camelChoice</p>";
?>
Any help hugely appreciated.