Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Quote Originally Posted by Teaspoon View Post
    AJAX is even more complicated than PHP includes.

    Even iframes require more code lol.

    It does not get anymore simpler!
    Quoting because of sheer truth.

    If you wanted no protection at all, you could do:
    PHP Code:
    include("$_GET[p].php"); 
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  2. #12
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    If your thinking of php navigation, just use this:

    PHP Code:
    <?
    if (isset($_GET['page']) && file_exists(''.$_GET[page].'.php')) // if ?page=blah is set, and it exists......
    {
        include(
    "{$_GET["page"]}.php"); // .....Include the page......
    }
    else 
    // ......or.......
    {
        include(
    "welcome.php"); // .......Include the 404 page
    }
    ?>
    Simple.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •