Posted by Garry Jones on 10/18/06 21:23
Rik" <luiheidsgoeroe@hotmail.com> skrev i meddelandet
news:769e4$4536474f$8259c69c$14655@news2.tudelft.nl...
> Garry Jones wrote:
> Indeed.
> Things like headers, actions to take, etc, I usually do before any HTML
> output at all.
Hmmm I got one of my forms working. Did a similar thing to another one but
am still having problems
On the form page these two variables are echoed correctly.
<?= $_SESSION['scf_upd_num'] ?>
<?= $_SESSION['scf_upd_nam'] ?>
On the form page and the processing page I load the session start write at
the begining, first line of code.
But on the processing page these rows
error_reporting(E_ALL);
print_r($_SESSION);
echo $_SESSION['scf_upd_num'];
echo $_SESSION['scf_upd_nam'];
produce this output
Notice: Undefined variable: _SESSION in
/customers/scfmotion.se/scfmotion.se/httpd.www/cent15dt.php on line 5
Notice: Undefined variable: _SESSION in
/customers/scfmotion.se/scfmotion.se/httpd.www/cent15dt.php on line 6
Notice: Undefined variable: _SESSION in
/customers/scfmotion.se/scfmotion.se/httpd.www/cent15dt.php on line 7
Note that the form is processed by - FORM action="index15dt.php" - a file
which uses a segment called cent15dt.php which can be seen in the above
example. I am surprised to see the name of the segment in the code because
the index15dt.php is the start of the code that puts the entire page
together.
Any ideas?
Garry Jones
Sweden
[Back to original message]
|