Jump to content

$GET


Schlo_50

Recommended Posts

this is your index page, home is your main page content

 

header is before content

footer is after content

<?php
include "header.php";

if(isset($_GET['page'])){
  $page = $_GET['page'];
}else{
  $page = "home.php";
}

include "PATH_TO_PAGES/$page";


include "footer.php";

?>

Link to comment
https://forums.phpfreaks.com/topic/48589-get/#findComment-237910
Share on other sites

Archived

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

×
×
  • Create New...

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.