Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Alternatively, if transparency is not needed,
1) make a blue container,
2) make white blocks in it,
3) make blue blocks on top, absolutely position, distort with the transform(skewX) property and put on top of the white ones.
Depending on the degree of crutch, but you can just in the forehead:
after:$_SESSION['reg_user'] = $reg;
if( isset($_POST['user_Email'], $_POST['user_birthsday'], $_POST['user_pass'], $_POST['user_RePass']) ) {
//reg
$errors = array();
if(R::count('users', "email = ?", array($data['user_Email'])) > 0) {
$errors[] = 'already reg';
}
if(empty ($errors)) {
$user = R::dispense('users');
$user->email = $data['user_Email'];
$user->birthsday = $data['user_birthsday'];
$user->password = password_hash($data['user_pass'], PASSWORD_DEFAULT);
R::store($user);
} else {
$error = array_shift($errors);
return $error;
}
$reg = R::findOne('users', 'email = ?', array($data['user_Email']));
$_SESSION['reg_user'] = $reg;
header('Location: /other_page');
die();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question