Php/mysql: Data isn't inserting into the table : <p>So I am trying to create this form however, I am not able to enter the data into the table. Whenever I click on continue button, nothing really happens. I don't get an error or anything. and when I check my database, the values have not been added. Idk how its happening. I spent hours trying to understand what the issue is but i am not able to identify it and it got to the point where I felt hopeless and decided to post this question so please help me. Here's my code:</p>

<pre><code>&lt;?php

$conn = new mysqli("localhost", "root", "", "KFC");
if(isset($_POST['Submit_btn']))
{
    session_start();
    $RID= $_POST['R_ID'];
    $Name= $_POST['Name'];
    $S_Description=($_POST['S_Description']);
    $L_Description=($_POST['L_Description']);
    $Nutritional_value=($_POST['Nutritional_value']);
    $Cost=($_POST['Cost']);
    $TypeOfMeal=($_POST['TypeOfMeal']);
    $SubmittedBy=($_POST['SubmittedBy']);
    $sql= "INSERT INTO `recipe`(`R_ID`, `Name`, `S_Description`, `L_Description`, `Nutritional_value`, `Cost`, `TypeOfMeal`, `SubmittedBy`) VALUES ($RID,$Name,$S_Description,$L_Description,$Nutritional_value,$Cost,$TypeOfMeal,$SubmittedBy)";
    mysqli_query($conn,$sql);

}
mysqli_close($conn);
?&gt;
&lt;html&gt;
&lt;body&gt;
&lt;div id="bodyContent"&gt;
&lt;h1&gt; Registration &lt;/h1&gt;
&lt;/div&gt;
&lt;form method="post"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;R_ID: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="R_ID" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Name: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="Name" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Small Description: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="S_Description" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Long Description: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="L_Description" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Nutritional value: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="Nutritional_value" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Cost: &lt;/td&gt;
&lt;td&gt;
&lt;input type="number" name="Cost" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Type Of Meal: &lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="TypeOfMeal" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;UserID: &lt;/td&gt;
&lt;td&gt;
&lt;input type="Number" name="SubmittedBy" class="textInput"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt;
&lt;input type="submit" name="Submit_btn" value="Continue"&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
