New Pages

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
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

New Pages

Post by Parody »

on forums and stuff it creates a new page for each topic right?

How do you do that?

Thanks
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post by djot »

Why people ask non understandable questions and expect an answer for that?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

it doesn't create a new page rather it fills the same page with different information from the database.

it selects the appropriate information from the database based on the parameters in the url:
ie viewforum or viewtopic etc.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

I see...... So if I want to pass a value through a link, what should the link look like?
AngusL
Forum Contributor
Posts: 155
Joined: Fri Aug 20, 2004 4:28 am
Location: Falkirk, Scotland

Post by AngusL »

Generally for forums etc, HTTP GET is used to pass data (as well as cookies for storing login info etc).

So you'd have something rather like what you can see in your address bar right now...

http://server.domain.tld/directory/file ... iablevalue

You then get that at the other end doing something like this in file.php...

Code: Select all

$foo = $_GET['variablename']
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Thanks :)
Post Reply