url rewrite for submit in php
<p>Do anyone know how can I rewrite a URL in php for the submit action?</p>

<p>Example:</p>

<p>I have a code as following:</p>

<p>I call to the page by using the following link www.assignment.com (I have set the index to test.php) and test.php will display the following code.</p>

<pre><code>&lt;form action="test.php" method="post"&gt;
  &lt;input type="text" name="phone" value=""&gt;
  &lt;input class="submit_btn" type="submit" name="submit" id="submit" value="SUBMIT"&gt;
&lt;/form&gt;
</code></pre>

<p>when I clicked on the submit button, it will post to test.php to do the action and the display the same input page. However once submit button been clicked, the url link will become www.assignment.com/test.php. any way that I can rewrite the url to www.assignment.com after submit instead of www.assignment.com/test.php?</p>
