Gossamer Forum
Home : General : Internet Technologies :

switch() function problem

Quote Reply
switch() function problem
I'm having an issue with the switch function. I'm getting this error:

Parse error: parse error, unexpected T_DEFAULT in C:\blah blah on line 183

Code:
switch($request_pagestyle) {
case default:
$sel_default == "select='selected'";
$sel_PTMaroon == "";
break;
case PTMaroon:
$sel_default == "";
$sel_PTMaroon == "select='selected'";
break;
}


It seems pretty basic and simple yet I'm getting this error. Any help is, as usual, much appreciated.
Subject Author Views Date
Thread switch() function problem JoFrRi 5711 Feb 8, 2004, 2:25 AM
Thread Re: [JoFrRi] switch() function problem
hennagaijin 5573 Feb 9, 2004, 7:01 AM
Thread Re: [hennagaijin] switch() function problem
JoFrRi 5545 Feb 9, 2004, 9:06 AM
Post Re: [JoFrRi] switch() function problem
hennagaijin 5538 Feb 9, 2004, 9:11 AM