hwg-languages archives | Apr 2000 | new search | results | previous | next |
Re: Another PHP problemby Reywob(at)aol.com |
|
I tried that, but it wouldn't work. If I do that then it won't recognize the } else{ statement. What's the fault in my code? <?PHP if (!isset($site)) { $site = ""; } elseif ($site == "pwp") { $sitecss = "http://members.aol.com/reywob/newstyle.css"; $sitename = "Peters Web Page"; $siteurl = "http://members.aol.com/reywob"; } elseif ($site == "rm") { ...more here... } else { $sitecss = "http://www.narrowgauge.f2s.com/style.css"; $sitename = "Narrow Gauge on the web"; $siteurl = "http://www.narrowgauge.f2s.com"; } ?> See it at http://www.narrowgauge.f2s.com/phorum
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA