[Help]PHP Navigation + User Sy

Posted on Friday 18th April 2008 at 04:39 PM
Stupidkid
Stupidkid's Avatar
So im having troubles getting this to work with the user system properly. I did make the user system way back, Before it was on TT. But I havent done any coding since. Heres my PHP Nav script.

Code
<?php
$page = Array();


$page['home'] = "main";
$page['error'] = "404";
$page['format'] = ".php";
$page['trig'] = "go";


if (empty($_GET[($page['trig'])])) $pg = $page['home'].$page['format'];
elseif (!ctype_alpha($_GET[($page['trig'])])||!file_exists($_GET[($page['trig'])].$page['format'])) $pg = $page['error'].$page['format'];
else $pg = $_GET[($page['trig'])].$page['format'];

include($pg);
?>


Now heres my problem. I have the login box included in my right nav. and when i log in, or logout or do anything, I loads twice. Once in the right nav. and then in the main content box.

Any Help?
I am better than you. Thats textbook.
Posted on Saturday 19th April 2008 at 02:34 AM
Stupidkid
Stupidkid's Avatar
This can be closed. I figured it out.
I am better than you. Thats textbook.
Login or register to respond to this forum topic.