Showing bootstraps modal after redicted to page
<p>So I have been making a website where settings.php and saveSettings.php page where it insert <code>$_POST</code> functions to database.</p>

<p>Here is part of settings.php</p>

<pre><code>echo '
  &lt;form action="saveSettings.php" method="POST"&gt;
    &lt;div class="form-group"&gt;
      &lt;textarea class="form-control no-resize" rows="4" id="profilecomment" name="profilecomment"&gt;&lt;/textarea&gt;
    &lt;/div&gt;
    &lt;input type="submit" class="btn btn-success" name="submit" style="margin-top:10px" value="Submit" /&gt;
  &lt;/form&gt;
';
</code></pre>

<p>and here part of saveSettings.php</p>

<pre><code>$userComment = $_POST["profilecomment"];

$updateComment = "UPDATE users SET comment = '$userComment' WHERE steamid = '$steamID' ";

header('Location: settings.php');
</code></pre>

<p>This is what I have tried:</p>

<p>I added my modal load script to settings.php page</p>

<pre><code>&lt;script&gt;
  $(window).load(function(){
    $('#settingsSave').modal('show');
  });
&lt;/script&gt;
</code></pre>

<p>And modal script:</p>

<pre><code>&lt;div class="modal fade" id="settingsSave" tabindex="-1" role="dialog"&gt;
  &lt;div class="modal-dialog"&gt;
    &lt;div class="modal-content"&gt;
      &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
      &lt;/div&gt;
      &lt;div class="modal-body"&gt;
          &lt;p&gt;You have successfully saved your settings!&lt;/p&gt;                     
      &lt;/div&gt;    
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I am not sure if it does not popup because of that:</p>

<pre><code>header('Location: settings.php');
</code></pre>

<p>I hope I can get some help.</p>