Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualAndy474

Posted 01 May 2013 - 02:40 AM

i think you can get away with

 

<?php include "someGenericButtons.html"; ?>
<?php
var $navigationBarToShow = GET['nav']; //Get Navigation from header (So 'TOPLEVEL' or something)
 
if($navigationBarToShow == 'TOPLEVEL')
    include "Navigation/ToplevelNavigation.html";
?>

 

then, in your navigation bar, your buttons simply point at

 

<a href="index.php?Nav=Button1">Button 1</a>

 

or Similar, My web knowledge isn't great, but this is how i did my 2nd Year Uni Web Project.

 

EDIT: Note this is Semi-psudo code :P


#1Andy474

Posted 01 May 2013 - 02:36 AM

i think you can get away with

 

<?php include "someGenericButtons.html"; ?>

 

<?php
var $navigationBarToShow = GET['nav']; //Get Navigation from header (So 'TOPLEVEL' or something)
 
if($navigationBarToShow == 'TOPLEVEL')
    include "Navigation/ToplevelNavigation.html";
?>

 

then, in your navigation bar, your buttons simply point at

<a href="index.php?Nav=Button1">Button 1</a>

 

or Similar, My web knowledge isn't great, but this is how i did my 2nd Year Uni Web Project.


PARTNERS