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
Parody
Forum Contributor
Posts: 252 Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain
Post
by Parody » Thu Jun 30, 2005 1:47 pm
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 » Thu Jun 30, 2005 1:57 pm
Why people ask non understandable questions and expect an answer for that?
Burrito
Spockulator
Posts: 4715 Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah
Post
by Burrito » Thu Jun 30, 2005 1:57 pm
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 » Thu Jun 30, 2005 2:08 pm
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 » Thu Jun 30, 2005 2:26 pm
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...
Parody
Forum Contributor
Posts: 252 Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain
Post
by Parody » Thu Jun 30, 2005 2:27 pm
Thanks