title: After processing form, How can I return to the Index.php?
body: <p>I'm trying to make a message board with php, but when a new message is posted the page goes to add.php instead of staying at index.php. </p>
  
  <p>I stores the messages from user in a text file.  When there is a new message, I append the file.  There are 4 file in my <code>www</code> directory - index.php, show.php, add.php and comments.txt.</p>
  
  <p>My index.php looks like this:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;messages&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Messages&lt;/h1&gt;
  &lt;div id="comments"&gt;
  &lt;?php include("show.php"); ?&gt;
  &lt;?php include("add.php"); ?&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My add.php looks like this:</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['cmt'])) {
   $cmt = $_POST['cmt'];
   $fh = fopen("comments.txt", 'a');
   fwrite($fh, "B_E_G_I_N\n");
   fwrite($fh, "$cmt\n");
   fwrite($fh, "E_N_D\n");
   fclose($fh);
  }
  ?&gt;
  &lt;form action="add.php" method="POST"&gt;
  &lt;input type="text" name="cmt"&gt;
  &lt;input type="submit" value="ok"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I know my implementation is really bad, but I really want to make it work first. </p>
  
  <p>Thanks!</p>