Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("../dbcon.php");
- $uid = "";
- $upw = "";
- $uname = "";
- if( isset($_POST['uid']) ){
- $uid = $_POST['uid'];
- }
- if( isset($_POST['upw']) ){
- $upw = $_POST['upw'];
- }
- if( isset($_POST['uname']) ){
- $uname = $_POST['uname'];
- }
- if( $uid && $upw && $uname ){
- $upws = md5($upw);
- $sql = "insert into users set ";
- $sql .= " userid='{$uid}'";
- $sql .= ", userpw='{$upws}'";
- $sql .= ", username='{$uname}'";
- $db->query($sql);
- }
- header("Location: index.php");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement