redirect user to another page
<p>I have this form :</p>

<p>I want to know if there is some way that when a user choose <code>directeur</code> from <code>niveau option field</code> to be redirected to the <code>directeur's page</code>, and if he is choose some other value he will be redirected to this value's page.</p>

<p>I know the method using <code>JavaScript</code> but I have to work only with <code>PHP</code>, and to do all manipulation on that form in the same page where the page is.</p>

<p>I tried this :</p>

<pre><code>if(isset($_POST['submit']))
   {
      if($_POST['niveau'] == 'directeur')
          header('Location: directeur.php');

   }
</code></pre>

<p>but this will redirect the user to the page without the <code>$_POST</code> values.
I know that there I can send some values with the url and retreive them use <code>$_GET</code> but I have to use only <code>$_POST</code>.</p>

<p>so is there any other method to do that ?</p>
