Strings: CATID, ID

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Strings: CATID, ID

Post by Kriek »

I've seen these at the end of urls like:

Code: Select all

http://somesite.com/content.php?id=9
These are strings right?
Is there any documentation on them?
I can't seem to find any.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

They are variables used by the code on the page being linked to.

If you're wondering about id and catid especially:
id and catid aren't special names they are just what the coder chose to represent a couple of values.

If you're wondering about query strings in general:
It's just a way of passing variables between web pages so that dynamic content can be generated.

Hope this helps,
Mac
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Post by Kriek »

The Query String is the part of the URL after the '?' and contains a series of variable/value pairs separated by an ampersand ('&').
ok I was reading up on passing variables from page to page.
So what you said makes sense now. Thanks.

I figured it ID and CatID where madeup names.
But ID being a common one. Seen it on Refferal systems.
Post Reply