Ania2019

save.php

May 11th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. if (isset($_POST['email']) && ($emailQuery->rowCount() === 0) ) {
  3. //zdefiniowanie zmiennej $email
  4. $email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
  5.  
  6. //if email is not correct syntax
  7. if (empty($email)) {
  8.  
  9. //nie powiodlo sie echo $_POST['email']. "<br/>" .$email;
  10. $_SESSION['given_email'] = $_POST['email'];
  11. $_SESSION['new_email'] = $emailQuery->rowCount();
  12. header('Location: index.php');
Advertisement
Add Comment
Please, Sign In to add comment