19 lines
345 B
PHP
19 lines
345 B
PHP
<!-- 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 -->
|