Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset(filter_input_array(INPUT_POST)['register'])) {
- require 'connection.php';
- }
- $firstname = filter_input_array(INPUT_POST) ['firstname'];
- $lastname = filter_input_array(INPUT_POST) ['lastname'];
- $registeras = filter_input_array(INPUT_POST) ['registeras'];
- $password = filter_input_array(INPUT_POST) ['password1'];
- $repassword = filter_input_array(INPUT_POST) ['password2'];
- //error handlers
- if (empty($firstname)||empty($lastname) ||empty($registeras)||empty($password) ||empty($repassword)){
- $header = header("location:../register.php?error=emptyfields&firstname=".$firstname."&lastname=".$lastname);
- exit();
- }
Add Comment
Please, Sign In to add comment