Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once "class.php";
- $conn = new db_class();
- if(ISSET($_POST['signup'])){
- $username = $_POST['username'];
- $password = $_POST['password'];
- //$username = mysql_real_escape_string($_POST['username']);
- //$password = mysql_real_escape_string($_POST['password']);
- $firstname = $_POST['firstname'];
- $lastname = $_POST['lastname'];
- $conn->save($username, $password, $firstname, $lastname);
- echo '<script>alert("Successfully saved!")</script>';
- echo '<script>window.location= "index.php"</script>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment