Radio
How do you Use Radio buttons?
Here is shown two radio buttons and one submit button.
At submit the PHP code will check if one or the other was chosen, and then send your user to a page depending on the choice.
Call the page in your browser. You should see the radio buttons and the submit button. Make a choice and click on the submit. You are now sent either to the Web Dev frontpage, or the frontpage of the gallerys site.
HTML
<HTML><BODY>
<FORM METHOD='POST' ACTION=''>
<INPUT TYPE='radio' NAME='page' VALUE='webdev'> webdev
<INPUT TYPE='radio' NAME='page' VALUE='photo'> photo
<INPUT TYPE='submit'>
</FORM>
</BODY></HTML>
PHP
<?php
if ($_POST['page'] == "webdev") {
header('location:http://dev.webpages.dk/');
} elseif ($_POST["page"] == "photo") {
header('location:http://photos.webpages.dk/');
}
?>