landing.php
operation.php
include 'db.php';
if (isset($_POST['signup'])) {
if (!$_POST['password'] == $_POST['repassword']) {
header("Location: landing.php?status=errorpassword");
exit;
}
$insert = $db->prepare("INSERT INTO golduyelik SET
username= :username,
email= :email,
password= :password,
repassword= :repassword
");
$kayit = $insert->execute(array(
'username' = $_POST['username'],
'email' = $_POST['email'],
'password' = $_POST['password'],
'repassword' = $_POST['repassword']
));
if ($kayit) {
header("Location: landing.php?status=ok");
}
}
?>
[/PHP]