'] : $_SESSION['spwd']; //line 8
if(!isset($suid)) {
?
bastien
From: bo [EMAIL PROTECTED]
Reply-To: bo [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] session confusion| can anyone help?
Date: Fri, 26 Aug 2005 11:42:18 +0800
here is the code for accesscontrol.php which control
here is the code for accesscontrol.php which control the access to protected
page, the server gives an error as of
Notice: Undefined index: uid in E:\www\signup\accesscontrol.php on line 7
Notice: Undefined index: pwd in E:\www\signup\accesscontrol.php on line 8
I tried input username and
session_start() should be given at the starting of the file before others
u can include anthing after the session_satrt() functon only
On Fri, 26 Aug 2005, bo wrote:
here is the code for accesscontrol.php which control the access to protected
page, the server gives an error as of
Notice:
Back to my multi page form again ;)
I am going to try it with Session variables .
So, one thing is confusing me.
The page requires the user to be logged in and is
being tracked via authentication.
Do I still need to do a session_start();, at the
beginning of the form process ?
Stuart
--
PHP
I presume that the session is not updating because PHP does not
automatically overwrite session variables.
You should use something like this:
$category = $HTTP_GET_VARS[category];
session_register(category);
Session register can be called more than once, and has no effect on
current session
Read current manual page.
If you still have problem, let me know what's the problem.
http://www.php.net/manual/en/ref.session.php
--
Yasuo Ohgaki
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
February 2002 10:56 PM
// To: php List
// Subject: [PHP-DB] Session confusion :-(
//
//
// Hi All
//
// I am send variable values via set links i.e.:
//
// http://domian_name.com/page.php?category=1
//
// http://domian_name.com/page.php?category=2
//
// http://domian_name.com/page.php?category=3
Hi All
I am send variable values via set links i.e.:
http://domian_name.com/page.php?category=1
http://domian_name.com/page.php?category=2
http://domian_name.com/page.php?category=3
Etc etc
The value is sent to a session. THIS WORKS BUT.
If I click on the first link session variable