create a sigup function
This commit is contained in:
parent
290546eea5
commit
04114270d9
18
signup.php
18
signup.php
|
@ -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 -->
|
Loading…
Reference in New Issue