Re: FN-FORUM PHP Switch
date posted 10th September 2002 19:50
Quote the constants, 'login' and 'logout'
Mark
----- Original Message -----
From: "Darren - Javelin Designs" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Tuesday, September 10, 2002 5:41 PM
Subject: FN-FORUM PHP Switch
> 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();
> }
>