Forum Moderators: coopster

Message Too Old, No Replies

change file.php?id=Page Name to file.php?id=1

         

Taran

8:05 am on Jan 6, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



i want to change file.php?id=PageName to file.php?id=1

<?
if (is_file("$id.htm")) include ("$id.htm");
else include ("../includes/404.htm");
?>

here's what i am using....
i am not using DB

Thank You In Advance

coopster

5:27 pm on Jan 6, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Taran, you're going to have to give us a bit more to go on...

Is

file.php?id=PageName
a string within the included file, $id.htm?
Or is it a link on one of your pages?
What is it exactly that you are trying to do?

Taran

12:10 pm on Jan 7, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



<?php include ("$id.htm");?>

i use this thing to put my .htm pages into my site's template. now i want it to do like index.php?id=1 without putting page to 1.htm