the set cookie code:
<?php
if ((((isset($_POST["rem"]))?$_POST["rem"]:"") != "")) {
setcookie("rem", "".((isset($_POST["rem"]))?$_POST["rem"]:"") ."", time()+(60*60*24*90), "/", "", 0);
}
?>
<?php
if ((((isset($_POST["rem"]))?$_POST["rem"]:"") != "")) {
setcookie("password", "".((isset($_POST["password"]))?$_POST["password"]:"") ."", time()+(60*60*24*90), "/", "", 0);
}
?>
<?php
if ((((isset($_POST["rem"]))?$_POST["rem"]:"") != "")) {
setcookie("username", "".((isset($_POST["username"]))?$_POST["username"]:"") ."", time()+(60*60*24*90), "/", "", 0);
}?>
needs to be moved to line 1 of the page.