Forum Moderators: coopster

Message Too Old, No Replies

$_GET['page']

how use $_GET['text'] 2 time in one age

         

Roobik

1:08 pm on Jun 17, 2006 (gmt 0)

10+ Year Member



Hi!
im using thias code
Code :
" if(file_exists("files/".$_GET['page'].".php"))
include ("files/".$_GET['page'].".php");
else include("files/body.php"); "
for show files in broser for example when in adress bar index.php?page=tourism the broser show tourism.php file!
now i need to use the same code for changine the part of same page for example part of touism page! how i must configure this code and the url?

phprockz

1:34 pm on Jun 17, 2006 (gmt 0)

10+ Year Member



$var1=$_GET['page'];
$var2=$_GET['page'];

" if(file_exists("files/$var1".php"))
include ("files/$var2.php");
else include("files/body.php"); "

hope this works.

Roobik

1:40 pm on Jun 17, 2006 (gmt 0)

10+ Year Member



so how i must configure Url?