I am trying to create a subscribe entry in the mysql database. Every time I submit the form a new entry is created while the email address or the input value is not appearing in the data base. Please locate what is wrong.
<?php
include 'dbh.php';
$subs=$_POST['$sub_email']:
$sql="INSERT INTO subscribe(sub) VALUES('$subs')";
$result=mysqli_query($conect,$sql);
header("Location:index.html");
?>
<form class="form" method="post" action="subscribe.php" style="margin-top: 20px">
<div class="input-group">
<div class="input-group-addon">@</div>
<input type="email" class="form-control" name="subs_email" id="inlineFormInputGroup" placeholder="Your Email">
</div>
<button type="submit" class="btn btn-success btn-lg" style="margin-top:5px " >Submit</button>
</form>