|
|
 |
Re: FN-FORUM PHP Switch
date posted 10th September 2002 18:31
This is a multi-part message in MIME format.
------=_NextPart_000_00F8_01C258F6.FC9334A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Is login a variable that you have defined elsewhere? If not and you're =
switching based on, say, a GET value passed to the page itself, then the =
problem is that you don't have the string quoted:
eg. case 'login': // etc.
Aral
--
Aral Balkan :: Director, Bits And Pixels Ltd. ::
24 Claremont Heights, 70 Pentonville Road, London, N1 9PR, United =
Kingdom.
(t) +44 (0) 20.7278.1825 (m) +44 (0) 07986.124219
----- Original Message -----=20
From: Darren - Javelin Designs=20
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 =E0 Notice: Use of undefined constant login - =
assumed 'login' in C:wwwrootpplogin.php on line 15
=20
switch ($action) {=20
case login:=20
process_login();=20
die();=20
case logout:=20
//null out cookies at start of login routine=20
// note on using cookies.=20
// MUST BE SET before ANY http output.=20
// They TRAVEL in the http HEADER so have to go first.=20
setcookie ("ck_username", "");=20
setcookie("ck_password", "");=20
setcookie("ck_user_id", "");=20
die();=20
}
------=_NextPart_000_00F8_01C258F6.FC9334A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
[EMAIL REMOVED] {
font-family: Wingdings;
}
@font-face {
font-family: SimSun;
}
@font-face {
font-family: @SimSun;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt =
90.0pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; =
mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: SimSun
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: SimSun
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: SimSun
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; =
mso-style-type: personal; mso-style-noshow: yes; mso-ansi-font-size: =
10.0pt; mso-bidi-font-size: 10.0pt
}
SPAN.EmailStyle18 {
COLOR: navy; FONT-FAMILY: Arial; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; =
mso-style-type: personal-reply; mso-style-noshow: yes; =
mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt
}
DIV.Section1 {
page: Section1
}
Is login a variable that you have =
defined=20
elsewhere? If not and you're switching based on, say, a GET value passed =
to the=20
page itself, then the problem is that you don't have the string=20
quoted:
eg. case 'login': // etc.
Aral
--
Aral Balkan :: Director, Bits And Pixels Ltd. ::24 Claremont =
Heights,=20
70 Pentonville Road, London, N1 9PR, United Kingdom.(t) +44 (0) =
20.7278.1825=20
(m) +44 (0) 07986.124219
----- Original Message -----
From:=20
|
 |
|