Form submission weird behaviour : <pre><code>&lt;?php
require_once("./include/membersite_config.php");

if(!$fgmembersite-&gt;CheckLogin())
{
$fgmembersite-&gt;RedirectToURL("index.php");
exit;
}

include 'header.php';
include './include/sql/connect.php';

if(isset($_POST['submit']))
{
$insert = "INSERT INTO `customers`(`bb_id`, `name`, `email`, `phone`, `circle`, `ssa`, `sdca`) VALUES (?,?,?,?,?,?,?)";

    $stmt = mysqli_prepare($connect, $insert);
    $stmt-&gt;bind_param('sssisss', $_POST['bb_id'],$_POST['name'],$_POST['email'],$_POST['phone'],$_POST['circle'],$_POST['ssa'],$_POST['sdca']);
    $stmt-&gt;execute();

    if (!$stmt)
    {
        printf("Error: %s\n", mysqli_error($connect));
        exit();
    }
}


$cust = "SELECT * FROM `customers`";
$qry = mysqli_query($connect,$cust);

?&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"&gt;
&lt;head&gt;
    &lt;meta http-equiv='Content-Type' content='text/html; charset=utf-8'/&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;title&gt;Customers&lt;/title&gt;
    &lt;!--link rel="stylesheet" type="text/css" href="style/fg_membersite.css"--&gt;
    &lt;link rel="stylesheet" type="text/css" href="style/tableview.css"&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;br&gt;
&lt;div id='tableview'&gt;
    &lt;div class='ext-box'&gt;
        &lt;form action="" method="post"&gt;
            &lt;input type="text" name="bb_id" placeholder="Broadband ID"&gt;&amp;nbsp;
            &lt;input type="text" name="name" placeholder="Name"&gt;&amp;nbsp;
            &lt;input type="text" name="email" placeholder="Email"&gt;&amp;nbsp;
            &lt;input type="text" name="phone" placeholder="Phone"&gt;&amp;nbsp;
            &lt;input type="text" name="circle" placeholder="Circle"&gt;&amp;nbsp;
            &lt;input type="text" name="ssa" placeholder="SSA"&gt;&amp;nbsp;
            &lt;input type="text" name="sdca" placeholder="SDCA"&gt;&lt;br&gt;&lt;br&gt;
            &lt;input type="submit" name="searchsubmit" value="Search Records"&gt;
            &lt;input type="submit" name="submit" value="Update Records"&gt;
        &lt;/form&gt;
    &lt;/div&gt;
    &lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;/div&gt;

&lt;table class="blueTable"&gt;
&lt;thead&gt;
    &lt;tr&gt;
        &lt;th&gt;Broadband ID&lt;/th&gt;
        &lt;th&gt;Name&lt;/th&gt;
        &lt;th&gt;Email&lt;/th&gt;
        &lt;th&gt;Phone&lt;/th&gt;
        &lt;th&gt;Circle&lt;/th&gt;
        &lt;th&gt;SSA&lt;/th&gt;
        &lt;th&gt;SDCA&lt;/th&gt;
    &lt;/tr&gt;
&lt;/thead&gt;
&lt;tfoot&gt;
    &lt;tr&gt;
        &lt;td colspan="7"&gt;
            &lt;div class="links"&gt;&lt;a href="#"&gt;&amp;laquo;&lt;/a&gt; &lt;a class="active" href="#"&gt;1&lt;/a&gt; &lt;a href="#"&gt;2&lt;/a&gt; &lt;a href="#"&gt;3&lt;/a&gt; &lt;a href="#"&gt;4&lt;/a&gt; &lt;a href="#"&gt;&amp;raquo;&lt;/a&gt;&lt;/div&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/tfoot&gt;
&lt;tbody&gt;
    &lt;?php while($row = mysqli_fetch_array($qry)):?&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;?php echo $row['bb_id'];?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row['name'];?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row['email'];?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row['phone'];?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row['circle'];?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row['ssa'];?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $row['sdca'];?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;?php endwhile;?&gt;
&lt;/tbody&gt;
&lt;/table&gt;            


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

<p>The above code is supposed to insert data filled in the form to a DB. And it does that, but what is weird is only sometimes.</p>

<p>Like I am trying to insert data since 2 hours using chrome but it would not do so. Suddenly I did the same thing with IE and it took the insert. I thought maybe browser compatibility, but when I tried again with IE it stopped inserting after doing it once.</p>
