history back -> profile.php
This commit is contained in:
@@ -2,7 +2,7 @@ function checkLoggedIn() {
|
|||||||
if (confirm("You are already logged in!\nDo you want to logout?\nPress ok to logout.") == true) {
|
if (confirm("You are already logged in!\nDo you want to logout?\nPress ok to logout.") == true) {
|
||||||
window.location.href = "logout.php";
|
window.location.href = "logout.php";
|
||||||
} else {
|
} else {
|
||||||
window.history.back();
|
window.location.href = "profile.php";
|
||||||
}
|
}
|
||||||
document.getElementById("demo").innerHTML = x;
|
document.getElementById("demo").innerHTML = x;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
} else {
|
} else {
|
||||||
$bday = test_input($_POST["bday"]);
|
$bday = test_input($_POST["bday"]);
|
||||||
}
|
}
|
||||||
g
|
|
||||||
checkInputChoice("username", "username");
|
checkInputChoice("username", "username");
|
||||||
checkInputChoice("password", "longerEight");
|
checkInputChoice("password", "longerEight");
|
||||||
checkInputChoice("confirmpassword", "");
|
checkInputChoice("confirmpassword", "");
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="styles/index.css">
|
href="styles/index.css">
|
||||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="jqeury.js"></script>
|
||||||
<script src="registerAndLogin.js"></script>
|
<script src="registerAndLogin.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user