Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

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: "www.abc.com/page_result.php?memberproductID=10&product=3"

    Is it some kind of database link?

    Many thanks in advance!

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

    http://www.yourwebsite.com/form2.php?n=10


    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['n'];




    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.

    http://www.kirupa.com/forum/member.php?u=91715 is the link to your user page
    http://www.kirupa.com/forum/member.php?u=130552 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 kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012