Jump to content


Photo

Linking Pages in PHP (main.php?id=***), etc


  • Please log in to reply
1 reply to this topic

#1 Mark30001

Mark30001
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 04 March 2006 - 04:13 AM

Greets there! I am very new to PHP programming and to these boards.

Sorry if there is a related topic. I am trying to develop my web site using PHP5, and I am currently running EasyPHP (http://easyphp.org) to view the site under my computer on the home URL: [a href=\"http://127.0.0.1\" target=\"_blank\"]http://127.0.0.1[/a].

I am trying to program my pages so that it links to other sections of the site using the format: (main.php?id=topic), but I do not know how I should set this up. Is anyone able to help?

Any help would be greatly appreciated! Thanks!

#2 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 04 March 2006 - 04:28 AM

you're looking for predefined variables:

[a href=\"http://us2.php.net/manual/en/reserved.variables.php\" target=\"_blank\"]http://us2.php.net/manual/en/reserved.variables.php[/a]

specifically, your URL is using $_GET['id']




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users