Jump to content

kevinbarker

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kevinbarker's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. THANK YOU! This gets the menu up, but some where it is not soring the login session? i have main.php, and i have menu.php  in menu.php is the code above, in main.php i have <? include 'menu.php'; ?> i have set it to display echo "You are not logged in"; echo "<meta http-equiv=refresh content=3;url=/>"; } wheni login it displays the menu, so that bit must be right, but then says i am not loged it, is it not saving the session some where?
  2. Hi all, still geting used to php! i have a quick question? I have certain menus for certain accress levels on my site that is controled via a MySQL database. in the file 300000.php there is a javescript menu! if i log in with access level 30000 i get this ok, if i login with access level 8000 i get the 30000 menu, any ideas. i have the following code after users have logged in. <? session_start(); $acclevel = $_SESSION['AccLevel']; ?> <? if (isset($_SESSION['valid_user'])) { if ($acclevel = 30000) {         include '30000.php'; //I WANT TO INCLUDE ANOTHER MENU HOW WOULD I DO THIS???? if ($acclevel = 8000) {         include '8000.php'; } else { echo "You are not logged in"; echo "<meta http-equiv=refresh content=3;url=/>"; } ?>
  3. Moring all, Still getting used to PHP, this is a strange on for me! I have a web site [a href=\"http://www.vsa-web.com/test/nav.php\" target=\"_blank\"]http://www.vsa-web.com/test/nav.php[/a] Where i include nav.php using the following code on all pages! <? include 'nav.php'; ?> If you go to [a href=\"http://www.vsa-web.com/test/nav.php\" target=\"_blank\"]http://www.vsa-web.com/test/nav.php[/a], i used a roll over image which works when you go to the URL direct! but if you do an include nav.php, the images dont work! have a look! this does not work in IE, but does using FireFox.. [a href=\"http://www.vsa-web.com/test/index.php\" target=\"_blank\"]http://www.vsa-web.com/test/index.php[/a] Any ideas, thanks Kev B
×
×
  • 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.