okej.. here it comes as short as I could get it... try the 'test' link to go
to page2...

page one:
<?php
    session_start();
 $xhtmlStart = $_SESSION["xhtmlStart"];
 $cellnum = 1;
 define("WHITE", "#ffffff");
 define("LGREY", "#fafafa");
 define("MAXSHOWN", 3);

    $xhtmlStart = "hello";
echo($xhtmlStart);
echo("<a href='svar.php'>test</a>");
?>


page 2:
<?php
    session_start();
    echo($_SESSION["xhtmlStart"]);
?>

----- Original Message -----
From: "Rich Gray" <[EMAIL PROTECTED]>
To: "Bobo Wieland" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 2:21 PM
Subject: RE: [PHP-WIN] $_SESSION


> Can you post some code that doesn't work....
> Rich
> -----Original Message-----
> From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 12:14
> To: Rich Gray; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] $_SESSION
>
>
> First of all; I had written the wrong save_path in php.ini. Thanks for
that
> Rico! It had just slipped my mind.
>
> Second, Rich; The test you suggested I try, did work, but my own pages
> doesn't. It works only when I do:
>
> page1:
> <?
> session_start();
> session_register('test');
> $test = "blah";
> ?>
>
> page2:
> <?
> session_start();
> echo ($_SESSION['test']);
> ?>
>
> why?!?
>
> .bobo
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to