我知道
中有很多信息if ($_SERVER["REQUEST_METHOD"] == "POST")
{
// validating the form to see all required fields are entered
if (empty($_POST["userID"]))
{
$userErr = "User ID is required";
}
else
{
$userID = test_input($_POST["userID"]);
}
if (empty($_POST["password"]))
{
$passErr = "Password is required";
}
else
{
$password = test_input($_POST["password"]);
}
if (empty($_POST["pass_conf"]))
{
$passErrc = "Confirm your password";
}
else
{
$pass_conf = test_input($_POST["pass_conf"]);
}
if (empty($_POST["firstName"]))
{
$firstErr = "First Name is required";
}
else
{
$firstName = test_input($_POST["firstName"]);
}
if (empty($_POST["lastName"]))
{
$lastErr = "Last Name is required";
}
else
{
$lastName = test_input($_POST["lastName"]);
}
if (empty($_POST["middle"]))
{
$middle = "";
}
else
{
$middle= test_input($_POST["middle"]);
}
if (empty($_POST["address"]))
{
$addErr = "Address is required";
}
else
{
$address = test_input($_POST["address"]);
}
if (empty($_POST["city"]))
{
$cityErr = "City is required";
}
else
{
$city = test_input($_POST["city"]);
}
if (empty($_POST["state"]))
{
$stateErr = "State is required";
}
else
{
$state = test_input($_POST["state"]);
}
if (empty($_POST["zip"]))
{
$zipErr = "Zip is required";
}
else
{
$zip = test_input($_POST["zip"]);
}
if (empty($_POST["email"]))
{
$emailErr = "Email is required";
}
else
{
$email = test_input($_POST["email"]);
}
if (empty($_POST["phone"]))
{
$phoneErr = "";
}
else
{
$phone = test_input($_POST["phone"]);
}
if($password != $pass_conf){
$passMathErr= "Passwords do not match. Please, go back and re-enter the passwords!";
// die($passMathErr);
} else{
// perform sql query to insert the data
$sql="insert into users values('$userID', '$password', '$firstName', '$lastName', '$middle', '$address', '$city', '$state', '$zip', '$email', '$phone')";
$result=mysql_query($sql, $connection);
header("Location: login.html");
}
}
?>
或
sessionstore.js
在更高版本中。但这些信息可能会在一分钟之内过时。我们可以通过任何方式了解当前标签的最新信息吗
更改
recovery.js
不是一种选择。
寻找网址,标题。