Thursday, 26 November 2015

PHP Signup Page

<!--php include ('database.php'); if (isset($_REQUEST['submit'])) { $username = $_POST['username']; $email = $_POST['email']; $password = $_POST['password']; $rePassword = $_POST['rePassword']; if ($password == $rePassword) { $id = uniqid(); mysql_query("insert into members (user_id,user_username,user_email,user_password) values ('$id','$username','$email','$password') "); header('Location: http://localhost/index.php'); echo "Data save"; } else { ?--> <script type="text/javascript"> alert('Your password is not matched'); </script> <!--php } } ?-->

Share

& Comment

0 comments:

Post a Comment

 

Copyright © Taha Codes™ is a registered trademark.