create a sigup function

This commit is contained in:
Ismail Cadaroski 2017-01-24 19:30:01 +01:00
parent 290546eea5
commit 04114270d9
1 changed files with 0 additions and 18 deletions

View File

@ -1,18 +0,0 @@
<!-- Sign up for the login -->
<?php
INCLUDE 'dbh.php';
$first = $_POST['first'];
$last = $_POST ['last'];
$uid = $_POST['uid'];
$pwd = $_POST['pwd'];
$sql = "Insert into user (first, last, uid, pwd)
VALUES ('$first', '$last' )";
$result = $mysqli_query($conn, $sql);
header("Location: index.php");
?>
<!-- Sign up for the login end -->