I have created a bootstrap form ,but it won't connect to the database. After filling up the forms, it gives me an undefined index error. I have no idea what to do. Can you help me? I'm so lost.
<form name="input" method="post" action="addtodatabase.php">
<form>
<div class="form-group">
  <label for="Book_Number">Book Number</label>
  <input type="text" class="form-control" id="Book_Number"  placeholder="Enter Book Number">
</div>
 <div class="form-group">
  <label for="Book_Title">Book Title</label>
  <input type="text" class="form-control" id="Book_Title" placeholder="Enter Book Title">
</div>
 <div class="form-group">
  <label for="Book_Description">Book Description</label>
  <input type="text" class="form-control" id="Book_Description" placeholder="Enter Book Description">
</div>
 <div class="form-group">
  <label for="Author">Author</label>
  <input type="text" class="form-control" id="Author" placeholder="Enter Author">
</div>
 <div class="form-group">
  <label for="Publisher">Publisher</label>
  <input type="text" class="form-control" id="Publisher" placeholder="Enter Publisher">
 </div>
 <div class="date">
  <label for="Year_Published">Year Published</label>
  <input type="date" class="form-control" id="Year_Published" placeholder="Enter Year Published">
 </div>
<br>    
<input type="submit">   <input type="reset"></center>
</form>
The undefined index error refers to Book_Number etc.
 <?php
 $connection = mysql_connect ('localhost','root','');
mysql_select_db('ABC_Library');
$Book_Number =      $_POST ['Book_Number'];
$Book_Title =       $_POST ['Book_Title'];
$Book_Description=  $_POST['Book_Description'];
$Author =           $_POST ['Author'];
$Publisher  =       $_POST['Publisher'];
$Year_Published =   $_POST['Year_Published'];
$query = 
"INSERT INTO Theology_Books
(Book_Number,Book_Title,Book_Description,Author,Publisher,Year_Published)
values
('$Book_Number','$Book_Title','$Book_Description','$Author','$Publisher','$Y    ear_Published')";
$result = mysql_query($query);
Echo "Database Saved"; 
mysql_close($connection);
?>
 
     
     
     
    