Can't figure out why this code don't work.
Help will be appreciate
PHP Code:<form action="radio.php">
<input type="radio" name="radiobutton" value="value1" />Yes <br />
<input type="radio" name="radiobutton" value="value2" checked="checked" />No <br />
<input type="submit" value="OK" />
</form>
<?php
if($_POST['radiobutton'] == "value1"){
echo "The choice was YES";
}
elseif($_POST['radiobutton'] == "value2"){
echo "The choice was NO";
}
?>




Rsss! Thank you!

Bookmarks