Anybody can help me with an if statement.
Which states if a cookie exists with your user and login then poster user preferences else.. Post the login box?
Thanks ANthony
if ($_COOKIE['valid']) { // or whatever his name is... :) echo "Your preferences: ".$pref-var; } else { header("Location: login.php"); }