Hi thanks for ther reply the error I get is Warning: Cannot modify header information - headers already sent by (output started at /home/index66.php:3) in /home/index66.php on line 3.
This is the code with the html stripped out:
Also the header is appearing with the error which it shouldn`t do.
PHP Code:
<?php include("header.php"); ?><?php if ($_POST['pass'] != 'colombia') { header('Location: http://www.mydomain.com/index66.php'); exit(); } ?>
<div id="banner"><!--Banner--></div> <div id=main> <div id=col66Left> <div id=contentBody>
<h2>You are in <?php print $_GET['country']; if ($_GET['country']=='') echo 'UK'; ?> </h2> <select name="select2" class="backinput" onChange="window.location.href=this.options[this.selectedIndex].value"> <option value=0 selected>Select country</option> </select>
</h2> </div>
<?php include("footer.php"); ?>
Bookmarks