D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
grandhou
/
www
/
admin
/
Filename :
insertuser.php
back
Copy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Grandhouse</title> </head> <body oncontextmenu="return false;"> <script> document.onkeydown = function(e) { if(event.keyCode == 123) { return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ return false; } } </script> <?php include("include/pdo.php"); $UserName = htmlspecialchars($_POST['txtUserName'], ENT_QUOTES, 'UTF-8'); $Password=md5($_POST['txtPassword']); $stmt = $DB_con->prepare("INSERT INTO admin(username,password) VALUES (:username,:password)"); $stmt->bindParam("username", $UserName,PDO::PARAM_STR) ; $stmt->bindParam("password", $Password,PDO::PARAM_STR) ; $stmt->execute(); echo '<script type="text/javascript">alert("User Inserted Succesfully");window.location=\'user.php\';</script>'; ?> </body> </html>