Hi all,
I have a page containing this code;
Code:
<?php
session_start();
// store session data
$_SESSION['loginName']=guest;
if ($_COOKIE["user"]<>"")
{
} else {
// start a new session for the user
session_start();
}
?>
<html>
<body>
<table>
<tr>
<td></td>
<td>
<form action="login.php" method="post">
Name: <input type="text" name="txtName" /><br/>
Password: <input type="password" name="txtPass" />
<br/>
<input type="submit" value="Log In"/>
</form>
</td>
</tr>
</table>
</body>
</html>
At the top where the session is querying whether to start, I have a cookie check to see if a user has already logged in, if they have to get another page to load up, so how do I do it?
Cheers,
------------------------------------------------
Apocolypse2005
Always ready and waiting to be helped! Soon changing as I have got so much better as a programmer!