Simple session varisable problem
Posted: Thu May 19, 2005 8:16 am
Hi,
Can anyone help with this simple session variable problem I have. I am registering and assigning a session variable in page 1 as follows:
The session variable is assigned the value of a form post. If I printr the session variable it outputs fine.
Now the problem is that I cannot access the session variable in a popup window. The code in my popup window is as follows:
I get no output whatsoever, any ideas. Many thnaks,
Rob.
Can anyone help with this simple session variable problem I have. I am registering and assigning a session variable in page 1 as follows:
Code: Select all
<?php
session_start();
session_register("testing");
$HTTP_SESSION_VARS ["testing"] = $_POST["del_add1"];
?>Now the problem is that I cannot access the session variable in a popup window. The code in my popup window is as follows:
Code: Select all
<?
session_start();
$testing_2=$HTTP_SESSION_VARS["testing"];
echo"$testing_2";
?>Rob.