Note that the positioning IS important as you can't call any HTML INCLUDING WHITE SPACES before the cookie is set.
Code for "question.php"
<?php
if ($country == "US") {setcookie ('country', 'US');}
elseif ($country == "Canada") {setcookie ('country', 'Canada');}
include ("country_form.inc");
?>
Code for "country_form.inc"
Are you visiting from Canada or the US?
<FORM ACTION="<?php echo($PHP_SELF); ?>" METHOD=POST>
<table border="0" cellspacing="0" cellborder="0">
<tr>
<td bgcolor="ff05a47">Password</td><td><input type="text" name="country" SIZE="20" maxlength="20"></TD>
</table>
<br>
<input type=submit name="submit" value="submit">
</form>
If you want to use an option menu, I've forgotten them but its fairly easy, just search for "pull down HTML menus" and you should find them.
To then check for the values you just use $country...
ie
<?php
if ($country == "US") {echo "You come from the US!;}
elseif ($country == "Canada") {echo "You come from Canada!;}
?>
Sorry for any bugs, there are normally a few, especially at 1am!
Night
(cad67@hotmail.com)