Forum Moderators: coopster
<?php
session_start();
$_SESSION['user'];
$user = $_SESSION['user'];
echo "&varUser=$user&";
?>
However, I have a friend who tried to load it on his using FireFox and when he goes to the page it is NOT passing the variable. It echos &varUser=&
This is the code I am using to set that variable:
if($numrows > 0 && $numrows2 > 0){
//Creating page variables
$pageold = ("http://www.domainhere/game.php");
$pageold.= header("Location:".$pageold);
header($_SESSION[$user]);
exit;//abort php script
}
As I said this works on ALL the computers I have tried it on but his in FireFox. He has the most updated version of FireFox and of the flash plugin.
I am so lost right now. I have no idea what to look for or even where to start looking. Any help would be much appreciated!
MM
Try this:
//assumes you've already created the session
if($numrows > 0 && $numrows2 > 0){
//Creating page variables
$_SESSION['user'] = $user;
$pageold = "http://www.domainhere/game.php";
header("Location: ".$pageold); // Note the space between Location: & $pageold. Not having the space could be causing browser problems.
exit;//abort php script
}