Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Pagina de inregistrare</title>
- </head>
- <body>
- <form action="register.php" method="POST">
- Username: <input type="text" name="username">
- <br />Password: <input type="password" name="password">
- <br />Cornfirm password: <input type="password" name="repassword">
- <br />Email: <input type="text" name="eamil">
- <br /><input type="submit" name="Register"> or <a href="login.php">Login</a>
- </form>
- <body>
- </html>
- <?php
- require('bazadate.php');
- $username = @$_POST['username'];
- $password = @$_POST['password'];
- $repassword = @$_POST['repassword'];
- $emai = @$_POST['emal'];
- if (isset($_POST['submit']))
- {
- if($query = mysql_query("INSER INTO users ('id', 'username', 'password', 'email') VALUES ('', '".$username."', '".$password."', '".$email."')"))
- echo "Succes";
- else
- echo "Fail";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement