Jump to content


This topic is now archived and is closed to further replies.


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

Recommended Posts

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=\"\" target=\"_blank\"][/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!

Share this post

Link to post
Share on other sites
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']

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.