Results 1 to 9 of 9

Thread: [RESOLVED]Getting variable from URL for include

Threaded View

  1. #1

    Thread Starter
    Lively Member Neo-dark's Avatar
    Join Date
    Oct 2004
    Location
    The neather world
    Posts
    114

    Resolved [RESOLVED]Getting variable from URL for include

    Hey all,

    I'm designing a sort of CMS system for a dutch non-profit org. but I am kind of stuck now.

    I want to retrieve the part in the URL that has a variable in it,Example:

    http://domain.com/index.php&about

    when the variable is &about I want the page to include about.html in the include statement

    Like:
    Code:
    <?php include("http://domain.com/{&about}"); ?>
    If I am not mistaken,

    could anyone give me a code snippet that does work? I dont know how the $_get statement works yet but I am sure it has to do with this,

    also note,I am not an expert in PHP at all, I am not even at the beginner level.

    thanks a bunch in advance.
    Last edited by Neo-dark; Aug 18th, 2007 at 09:44 AM. Reason: Resolved
    i got kicked out of barnes and noble once for moving all the bibles into the fiction section"--FD

    Of course I'm a real doctor! I'll draw up my own diploma some time to prove it!-Dr Dis

Posting Permissions

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



Click Here to Expand Forum to Full Width