Hadi1989

Untitled

Jul 16th, 2019
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2.     require_once "class.php";
  3.     $conn = new db_class();
  4.     if(ISSET($_POST['signup'])){
  5.             $username =   $_POST['username'];
  6.             $password = $_POST['password'];
  7.         //$username = mysql_real_escape_string($_POST['username']);
  8.         //$password = mysql_real_escape_string($_POST['password']);
  9.         $firstname = $_POST['firstname'];
  10.         $lastname = $_POST['lastname'];
  11.         $conn->save($username, $password, $firstname, $lastname);
  12.         echo '<script>alert("Successfully saved!")</script>';
  13.         echo '<script>window.location= "index.php"</script>';
  14.     }  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment