Another PHP problem

by Reywob(at)aol.com

 Date:  Sat, 22 Apr 2000 03:23:19 EDT
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
Sorry chaps, but can anyone eell me why the code below produces only error 
messages?

<?PHP
if ($site == "pwp") {
$sitecss = "http://members.aol.com/newstyle.css";
$sitename = "Peter's Web Page";
$siteurl = "http://members.aol.com/reywob";
} elseif ($site == "rm") {
$sitecss = "http://www.railwaymodelling.co.uk/style.css";
$sitename = "Railway Modelling";
$siteurl = "http://www.railwaymodelling.co.uk
} else {
$sitecss = "http://www.narrowgauge.f2s.com/style.css";
$sitename = "Narrow Gauge on the web";
$siteurl = "http://www.narrowgauge.f2s.com";
}
?>

Thanks,
Peter.

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA