Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("db.php");
- if(isset($_REQUEST['signup']))
- {
- $firstname=$_REQUEST['firstname'];
- $lastname=$_REQUEST['lastname'];
- $username=$_REQUEST['username'];
- $email=$_REQUEST['email'];
- $password=$_REQUEST['password'];
- $sql="insert into users (`firstname`,`lastname`,'username',`email`,`password`) VALUES ('$firstname','$lastname','$username','$email','$password')";
- $result=mysql_query($sql);
- if($result)
- {
- echo "You are successfully registered";
- }
- else
- {
- echo "Registration Failed.! Please try again";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement