Thanks, I changed the single = to a double ==
This is how I have been trying to use the variable, to send the user to another page....
if ($wannago == 1)
{
header("location: /contact.php");
}
elseif ($wannago == 2)
{
header("location: /modindex.php");
}
else
{
header("location: /index.php");
}
The result is that the user goes right to the index.php page.
I tested the wannago variable on another page and it worked, so I'm not sure why the redirect isn't working.