It seems that variables are not being passed to same page using POST method... I'm a beginner in html,php...
Please help...
table-name = member
attribute = name

```
<?php
include 'connection.php';
if(isset($_POST['submit'])) {
    $name = $_POST{'name'};

$query = "INSERT INTO member (`name`) VALUES ('$name')";
mysqli_query($conn, $query);
header('Location: register.php');
}
?>

<form class="form-horizontal" action="register.php" method="post" id="input">
<div class="form-group">
  <label  class="col-sm-2 control-label">Name</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="name" value="" />
    </div>
</div><br>
<input type="submit" name="submit" form="input" class="btn btn-primary" value="Register" />
</form>

```