Results 1 to 4 of 4

Thread: [RESOLVED] What is this and how to: Page.php?Something=1763

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2008
    Location
    >> ( ҉ )
    Posts
    413

    Resolved [RESOLVED] What is this and how to: Page.php?Something=1763

    This is example.

    http://www.vbforums.com/member.php?u...m_Number_Of_ID

    How do i can make page to get information about the end of navigation bar's information?

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: What is this and how to: Page.php?Something=1763

    That is called a querystring. In this instance, it is feeding the ID of a user and PHP is going to the database and pulling back information related to that ID.

    What exactly do you want to accomplish?

  3. #3
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: What is this and how to: Page.php?Something=1763

    a query string is called a 'GET' request. in PHP, the superglobal $_GET is there to allow you access to the query string. to demonstrate how it works:

    if we have this url: http://example.com/?text=hello+world, then the $_GET superglobal would be populated like so:

    $_GET = array (
    [text] => hello world
    )


    so, you can access the text "hello world" from the URL by referencing $_GET['text'].

    if we have this URL instead: http://example.com/?text=hello&name=david, then the $_GET superglobal would be populated like so:

    $_GET = array (
    [text] => hello
    [name] => david
    )


    so, we would be able to use both $_GET['text'] and $_GET['name'].

    it doesn't matter what order they appear in the URL, either.

    now, I'm sure the above information was nice to know, but to help you any further, the question kfcSmitty asked is key ("what exactly do you want to accomplish?").

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2008
    Location
    >> ( ҉ )
    Posts
    413

    Re: What is this and how to: Page.php?Something=1763

    Thank you so much kows for explaining me this all.

    Rep(+)
    E: Can't give yet Says that i can't give so much once
    E: Yes i needed those info in first post and thank you for explanation.
    Last edited by Zeuz; Dec 15th, 2009 at 01:53 PM.

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