
PHP Drop-Down Box Link
This script will redirect a user to a site he or she has selected in the drop-down menu. The drop-down box sends the data over via the "post" method to the redirect.php page, which in turn sends the user to their selected site.
Simple, yet it works a treat! Try it out
Example
Script Source
<The Drop-Down Box >
<form action="redirect.php" method="post">
<select name=url>
<option value="https://www.wizzardweb.co.uk">Wizzardweb.co.uk</option>
<option value="https://www.google.co.uk">Google.co.uk</option>
<option value="https://www.yahoo.co.uk">Yahoo.co.uk</option>
<option value="https://www.msn.co.uk">Msn.co.uk</option>
</select>
<input type="submit" value="Go!">
</form>
<The PHP Page Redirect.php >
<?php
$url = $_POST["url"];
header("Location: $url");
?>
Please let me know if this script was helpful to you.