The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 4 of 4

Thread: General php page question

  1. #1

    General php page question

    I am new to php. I want to know why php page has extensions like "?", "ID=X"? For example: ""

    Is it some kind of database link?

    Many thanks in advance!

  2. #2
    its called a GET variable, for instance.

    The first page "form1.php" has a link to the above address

    What that means is that in "form2.php" the value of 10 is equivalent to the global variable:


    Get it?

    Twitter / The Human Conditions

    biznuge: "that doesn't grammatical sense..."

  3. #3
    Hmm.. what's global variable? How do you come up with the value?

  4. #4
    I would start looking up the different types of variables available to you in PHP This is a good start

    As for as the value lets use Kirupa's forums as an example shall we. is the link to your user page is the link to MY user page

    notice the similarity? the only difference is the variable $_GET['u'] which is our user number in the database.
    The user page takes this Get variable and uses it against the database to retrieve the information from the user with that user number.

    This allows you to make 1 webpage that will look to the user like multiple webpages. In other words Kirupa only had to build 1 user page. But that page changes depending on which user we are getting info from.

    Twitter / The Human Conditions

    biznuge: "that doesn't grammatical sense..."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012