daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Feb 12th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. if (isset(filter_input_array(INPUT_POST)['register'])) {
  4.     require 'connection.php';
  5. }
  6.  
  7. $firstname = filter_input_array(INPUT_POST) ['firstname'];
  8. $lastname = filter_input_array(INPUT_POST) ['lastname'];
  9. $registeras = filter_input_array(INPUT_POST) ['registeras'];
  10. $password = filter_input_array(INPUT_POST) ['password1'];
  11. $repassword = filter_input_array(INPUT_POST) ['password2'];
  12.  
  13. //error handlers
  14.  
  15. if (empty($firstname)||empty($lastname) ||empty($registeras)||empty($password) ||empty($repassword)){
  16.     $header = header("location:../register.php?error=emptyfields&firstname=".$firstname."&lastname=".$lastname);
  17.     exit();
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top