File name
Commit message
Commit date
File name
Commit message
Commit date
<?php
$userId = $_POST["userId"];
$userPw = $_POST["userPw"];
$id = "test";
$pw = "1234";
$result = "";
if($userId == $id && $userPw == $pw){
// echo "<script>document.location.href='success.php?id='" . $userId . "</script>";
header('Location:success.php?id=' . $userId);
}else{
echo "<script>alert('Login Fail!')</script>";
echo "<script>document.location.href='login.php'</script>";
}