Attention: PROnetworks has upgraded our forum from phpbb2 to phpbb3!!

Please head over to our new converted forum at: http://www.pronetworks.org/forums/

This old forum will remain 'read-only' until approximately February 2009. We look forward to seeing you at the new forum!
Author Message
[Dima]
PostPosted: Thu Jul 01, 2004 3:55 pm Reply with quote

PRO Level 5
 
 


Joined: 11 May 2004
Posts: 160
Location: UK
Well i got a website... i started again... fresh and now i want to have it all php based (well most of it) but im not sure how to get the links working like "index.php?id=page_one" as im quite a new at php. But i know some stuff dgi

can someone sugest a tutorials or whatever to help me please?

thanks
 
Back to top
Weaver
PostPosted: Thu Jul 01, 2004 4:22 pm Reply with quote

PROfessional Member
 
 


Joined: 18 Jun 2002
Posts: 2587
Location: /home/weaver/
You are going to have to gain familiarity with manipulating the query string if you want to use the specifics you mentioned above.

There are quite honestly hundreds of ways of implementing an ?id=page_one like setup.

All variables passed in via the query string are accessible via the superglobal $_GET array. Let's say someone requests the page http://test.com/index.php?id=mydoc&page=2 . If register_globals is turned on (which is highly discouraged for security) then two variables would be created called $id and $page and they would be created in global scope.

If register_globals is turned off then the variables would be accessible from $_GET['id'] and $_GET['page'].

You can then use fopen() or include() or some other mechanism to open up files represented by these values. Tada.

-Weaver
 
Back to top
[Dima]
PostPosted: Thu Jul 01, 2004 4:26 pm Reply with quote

PRO Level 5
 
 


Joined: 11 May 2004
Posts: 160
Location: UK
well thank you for your explanation... im going to test it now! thumbsup
 
Back to top
[Dima]
PostPosted: Fri Jul 02, 2004 9:14 am Reply with quote

PRO Level 5
 
 


Joined: 11 May 2004
Posts: 160
Location: UK
YEYE!!!! after a few hours (more like 20) i got the links to work!!! thumbsup

thank you weaver!!

heres the site btw (still not anywhere near comletion) http://keitx.myftp.org
 
Back to top
xi0n
PostPosted: Fri Jul 02, 2004 7:37 pm Reply with quote

Banned
 
 


Joined: 01 Jul 2004
Posts: 86
i would clap -cept the site can not be found..
 
Back to top
[Dima]
PostPosted: Sat Jul 03, 2004 8:11 am Reply with quote

PRO Level 5
 
 


Joined: 11 May 2004
Posts: 160
Location: UK
 
Back to top
xi0n
PostPosted: Sat Jul 03, 2004 8:41 am Reply with quote

Banned
 
 


Joined: 01 Jul 2004
Posts: 86
nice - just wonderin on the hedda on ya site - whats that font?
 
Back to top
[Dima]
PostPosted: Sat Jul 03, 2004 9:46 am Reply with quote

PRO Level 5
 
 


Joined: 11 May 2004
Posts: 160
Location: UK
not too sure... it came with windows xp pro i think (font folder)
 
Back to top
Back to top

Page 1 of 1

 


Tired of the Ads? Registered users have 80% less adverts.