chrisgocrazyH
20-03-2008, 11:29 PM
I just made a forum :) But theres a probleam,
I followed the tut right it all works BUT i have a usersystem i have. Now on this forum i have it asks for you to manually add the Name How cna i get it so i can just have them login and it allready be there?
http://www.phpeasystep.com/workshopview.php?id=12
<-- thats the forum
and the Usersystem NAME session code is:
" . $_SESSION['username'] . "
Ill also show u guys the Logged in page incase u need it?
<?php
session_start();
if(!isset($_SESSION['username']) || !isset($_SESSION['sid']) ||!isset($_SESSION['ip'])) {
header("Location: login.php");
exit;
}
echo "Welcome, " . $_SESSION['username'] . "<br>";
echo "<a href=\"inbox.php\">My Emails</a><br><a href=\"main_forum.php\">Forum</a>";
?>
I followed the tut right it all works BUT i have a usersystem i have. Now on this forum i have it asks for you to manually add the Name How cna i get it so i can just have them login and it allready be there?
http://www.phpeasystep.com/workshopview.php?id=12
<-- thats the forum
and the Usersystem NAME session code is:
" . $_SESSION['username'] . "
Ill also show u guys the Logged in page incase u need it?
<?php
session_start();
if(!isset($_SESSION['username']) || !isset($_SESSION['sid']) ||!isset($_SESSION['ip'])) {
header("Location: login.php");
exit;
}
echo "Welcome, " . $_SESSION['username'] . "<br>";
echo "<a href=\"inbox.php\">My Emails</a><br><a href=\"main_forum.php\">Forum</a>";
?>