Posted by Jerry Stuckle on 10/09/06 20:26
Garry Jones wrote:
> Elsewhere on a form page I am declaring a variable
>
> *******************************
> session_start();
> $_SESSION['testvar'] = "sometext";
>
> At the top of the page that will process the form code I have this line.
>
> session_start();
> $testppp=$_SESSION['testvar'];
>
> echo $testppp;
>
> *******************************
>
> But nothing is echoed. What am I missing?
>
>
> Garry Jones
> Sweden
>
>
Are you calling session_start() before ANY output is sent to the
browser? This includes html, php output or even white space.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|