You are here: Re: [PHP] Someone please help me with this PHP script. « PHP « IT news, forums, messages
Re: [PHP] Someone please help me with this PHP script.

Posted by £ukasz Hejnak on 12/18/05 17:42

Zareef Ahmed napisaΕ‚(a):
> Hi,
Hi
> what is not working in this code?
That's how I see it
<?
$defaultpage = "http://lom.game-host.org/uploads/erik/";
// yes the isset is ok here
If(!isset($page)) {
$page = "one";
}


if($page == "one") {
// as far as I know echo is all low case written but maybe it's not a
must in all instalations
echo "<html><head><title>Page One</title></head><body>It
works!!<br><a href=\"" . $defaultpage .
"index.php?page=two\">Nice...</a></body></html>";
}

// else space_here if, not elseif !
else if($page == "two") {
echo "<html><head><title>Page Two</title></head><body>This is page
".$page." -- <a
href=\"".$defaultpage."index.php?page=\">;D</a></body></html>";
}

// && instead of || (and instead of or) here to have the opposite!
else if( ($page != "one") && ($page != "two") && ($page != NULL) ) {
echo "<html><head><title>Undefined!</title></head><body>page isn't
defined correctly!</body></html>";
}

if($page == "") {
Echo "<br><br><br><br><br><br><br><br><a href=".$defaultpage.">Main
Page..</a>";
}
?>
> Thank you,
You're welcome :)

--
Best wishes
Łukasz 'Szift' Hejnak

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация