Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('connection.php');
- $username = $_POST['username'];
- $email = $_POST['email'];
- $password = $_POST['password'];
- $confirmpassword = $_POST['confirmpassword'];
- echo $username;
- echo $email;
- echo $password;
- echo $confirmpassword;
- if(!empty($username) ||!empty($email) ||!empty($password) ||!empty($confirmPassword))
- {
- echo " hello";
- if ($password=$confirmpassword)
- { echo "hai";
- $sql="insert into signup (username,email,password,rpassword) values ('$username','$email','$password','$confirmpassword');";
- echo $sql;
- if(mysqli_query($conn,$sql))
- {
- echo "inserted";
- header("Location:home.php?register=success");
- }
- }
- }
- else
- {
- echo "all fields are required";
- }
- ?>
Add Comment
Please, Sign In to add comment