Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host=""; // Host name mysql1.000webhost.com
- $username=""; // Mysql username
- $password=""; // Mysql password
- $db_name=""; // Database name
- $tbl_name=""; // Table name
- mysql_connect($host, $username, $password)or die("cannot connect");
- mysql_select_db($db_name)or die("cannot select DB");
- //===============End Server Configuration============
- //=============Starting Registration Script==========
- $myusername=$_POST['myusername'];
- $mypassword=$_POST['mypassword'];
- //============New Variable of Password is Now with an Encrypted Value========
- if(isset($_POST['btnRegister'])) //===When I will Set the Button to 1 or Press Button to register
- {
- $query = "insert into members(username,password)values('$myusername','$mypassword')";
- $res = mysql_query($query);
- header('location:index.php');
- }
- ?>
Add Comment
Please, Sign In to add comment