Forum Moderators: coopster

Message Too Old, No Replies

How do you make links like: something?id=3

Need tutorial

         

one_mind

12:14 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



Hi,

Does anyone know where i can find a tutorial about how to make dynamic pages wtih id links.

Sorry if i didnt explain that well enough :)

Thanks

mcavill

12:26 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



you could try: [w3schools.com...]

one_mind

12:33 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



Not quite what i was after :)

Thanks anyway

dwighty

2:10 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



one_mind,

did you mean something like

<?
include("header.php");
$page = $_GET[page];
if($page=="") {
include("main.php");
}
else
{
include("pages/".$page.".php");
}
include("footer.php");
die;
?>

then your link is:

www.yourdomain/?page=contact

jatar_k

3:35 pm on Oct 17, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I wouldn't specifically suggest going down that route unless you have no choice, clean urls always work better

I am guessing you are basically looking at building a dynamic site that uses a template and slaps content into the template based on some criteria.

this thread might give you some ideas
A dynamic site in 2 minutes [webmasterworld.com]

one_mind

4:08 pm on Oct 17, 2005 (gmt 0)

10+ Year Member



Thanks guys,

I've got it working :)