Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Idiot Mistake] Need Help

Name: Anonymous 2010-06-02 2:02

Ok, So I am using a $_GET function as a main navigation tool. Yes, I am using PHP, I did not come here to get ridiculed, I came here for assistance.

So I have the script something like:

<?php
$page = $_GET['p'];

if ($page == ""){
require 'index.htm';
};

if ($page == "about"){
require 'aboutme.htm';
};

if ($page == "links"){
require 'links.htm';
};
?>

And I have seen this work before, However I am running this off a different server on my own IP address instead of on a host. Basically the error I keep getting is that "p" is not defined. So, simply "page.php" will not load, however "page.php?p" will load. I have never had this happen before. Usually if the $_GET is set to '', then running page.php by itself will just cause the index page to show up instead.

I really don't understand what I did wrong. Please help /prog/.

Name: Anonymous 2010-06-04 7:36

What is this shit? PerlHP?

<html>
  <body>
    <h1>[=$title=]</h1>
    <table>
<?pl my $i = 0; ?>
<?pl for my $item (@$items) { ?>
<?pl     my $color = ++$i % 2 == 0 ? '#FFCCCC' : '#CCCCFF'; ?>
      <tr bgcolor="[==$color=]">
        <td>[==$i=]</td>
        <td>[=$item=]</td>
      </tr>
<?pl } ?>
    </table>
  </body>
</html>

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List