Click to See Complete Forum and Search --> : good at php?


neil
03-03-2003, 01:19 PM
switch($pres){

case "pv":
$msg .= "How We Handle Permanent Vacancies";
break;

case "tc":
$msg .= "How We Handle Temporary and Contract Requirements";
break;

$msg .= "Preferred Customer Agreements";
case "ca":
break;
default:
$msg .= "No variable passed here"
break;
}

I can't figure out whats wrong with this code.

pyro
03-03-2003, 01:34 PM
You forgot a semi-colon on line 15:

default:
$msg .= "No variable passed here"; // Semi-colon forgotten here
break;