Posted by Wolf on 12/18/05 06:33
What is it doing, or not doing?
Try changing the <? to <?php and see if that works.
Robert
Erik Johnson wrote:
> I do not know why this isn't working, but it would be very helpful if
> someone looked over it.
>
> <?
> $defaultpage = "http://lom.game-host.org/uploads/erik/";
>
> If($page == NULL) {
> $page = "one";
> }
>
> if($page == "one") {
> Echo "<html><head><title>Page One</title></head><body>It works!!<br><a
> href=\"" . $defaultpage . "index.php?page=two\">Nice...</a></body></html>";
> }
>
> elseif($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>";
> }
>
> elseif( ($page != "one") or ($page != "two") or ($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,
>
> Erik Johnson
>
Navigation:
[Reply to this message]
|