|
|
 |
Re: FN-FORUM PHP Switch
date posted 10th September 2002 18:15
This is a multi-part message in MIME format.
------=_NextPart_000_0033_01C258F4.180B3F50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
try:
case 'login':
and
case 'logout':
----- Original Message -----=20
From: Darren - Javelin Designs=20
To: [EMAIL REMOVED]
Sent: Tuesday, September 10, 2002 5:11 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_0033_01C258F4.180B3F50
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-compose; mso-style-noshow: yes; =
mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt
}
SPAN.SpellE {
mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
page: Section1
}
try:
case 'login':
and
case 'logout':
----- Original Message -----
From:=20
|
 |
|