Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user=$_POST['username'];
- $pass=$_POST['password'];
- $repass=$_POST['repassword'];
- $mail=$_POST[E-mail'];
- $con=mysql_connect('localhost', 'user', 'howme1');
- mysql_select_db('ryamoo1_user', $con));
- if($user&&$pass&&$repass&&$mail){
- if($pass!=$repass){
- echo"Password in both fields don't match!";
- }
- else{
- mysql_query("INSERT INTO ryamoo1_user (id,username,password,email) VALUES ('', '$user', '$pass', '$mail')");
- echo"$user has been successfully registered!";
- }
- }
- else{
- echo"Please fill out all the fields!";
- }
- ?>
Add Comment
Please, Sign In to add comment