1.) Use this snippet for a quick navigation
option for your visitors
<?
// Change $site_loc to your domain
$site_loc= 'http://www.yourdomain.com';
if ($goto_url) {
header( "Location: $goto_url");
}
?>
//Here's the form, put anywhere you would like in your
php pages
<form method="POST" action="<? echo
"$PHP_SELF" ?>">
<SELECT NAME="goto_url">
//reference your pages from the root, ie. :
//If you were trying to set http://www.yourdomain.com/ads/index.html
//you would set the address to /ads/index.php in the form
<option value="<? echo"$site_loc";
?>/index.php">Home</option>
<option value="<? echo"$site_loc";
?>/marketing/index.php">Marketing</option>
<option value="<? echo"$site_loc";
?>/aboutus.php">About Us</option>
</select>
<input type=submit name=submit value=submit>
</form>
|