|
|
 |
PHP Switch
date posted 10th September 2002 17:45
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C258F1.4CB1AB70
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi could some one tell me what is wrong with this switch coz it keeps
brining this error back --> Notice: Use of undefined constant login -
assumed 'login' in C:wwwrootpplogin.php on line 15
switch ($action) {
case login:
process_login();
die();
case logout:
//null out cookies at start of login routine
// note on using cookies.
// MUST BE SET before ANY http output.
// They TRAVEL in the http HEADER so have to go first.
setcookie ("ck_username", "");
setcookie("ck_password", "");
setcookie("ck_user_id", "");
die();
}
------=_NextPart_000_0006_01C258F1.4CB1AB70
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi could some one tell me what is wrong with this =
switch coz
it keeps brining this error back à Notice: Use of undefined constant =
login -
assumed 'login' in C:wwwrootpplogin.php
on line 15
switch ($action) {
=
case
login:
&nbs=
p;
process_login();
&nbs=
p;
die();
=
case
logout:
&nbs=
p;
//null out cookies at start of login routine =
=
// note =
on using
cookies.
&nbs=
p;
// MUST BE SET before ANY http output. =
&nbs=
p;
// They TRAVEL in the http HEADER so have to go first. =
&nbs=
p;
setcookie ("ck_username", ""); =
&nbs=
p;
setcookie("ck_password", ""); =
&nbs=
p;
setcookie("ck_user_id", ""); =
&nbs=
p;
die();
=
}
------=_NextPart_000_0006_01C258F1.4CB1AB70--
|
 |
|