#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    5
    Rep Power
    0
    Hello, as you can see buy the topic, i need it so that the chosen pageid then "includes" that file into the php... below is the url to my current source code.. please if you can help me out... just email me or post here.. thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    59
    Rep Power
    15
    That shouldn't be too hard, but you might have to change your URl a little, if you would put the full page name in the URL, like index.php3?pageid=home.php3

    Then you could just include it with

    include("$pageid");

    hope that helps

    Chris
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    5
    Rep Power
    0
    Ok thanks.. but now what if they go straight to index.php3... it will show this "Warning: Failed opening '' for inclusion (include_path='') in /www/worldzone/arts/kianr/index.php3 on line 11" since there is no chosen file.... for pageid.. is there an if statement(stating if there is no chosen pageid to go straight to the home.php3 page) to do that?
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    5
    Rep Power
    0
    Never mind i figured it out! yay!

    PHP rules all... thanks Chris for your help too! If there are any pointers you can give me with navigation like this.. please do so thanks!
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    59
    Rep Power
    15
    ya, it would be like

    if(isset(pageid))
    {
    include("pageid");
    }

    I am not sure about the code, it probably needs changed a little.

    Chris

Similar Threads

  1. out put of < > and &lt; &gtl
    By don_sparko in forum ColdFusion Development
    Replies: 2
    Last Post: November 25th, 2003, 04:26 PM
  2. < Previous 10 | Next 10 >
    By genedavinci in forum PHP Development
    Replies: 8
    Last Post: July 23rd, 2002, 07:36 AM
  3. parse & or <
    By jochum in forum XML Programming
    Replies: 2
    Last Post: May 24th, 2002, 03:18 AM
  4. grep from < pre> until < /pre>
    By yhcmarc in forum Perl Programming
    Replies: 4
    Last Post: February 18th, 2002, 05:35 PM
  5. Replies: 7
    Last Post: August 22nd, 2001, 12:40 PM

IMN logo majestic logo threadwatch logo seochat tools logo