increase by one a variable every time you push a button (PHP)
<p>I'd like that the variable <code>$order</code> is increase by 1 every time I push the submit button. </p>

<p>(The name of the page is study.php so every time I push the button the page is refreshed):</p>

<pre><code> &lt;?php 
 $order = $_GET['number']; 

 echo "&lt;form action='study.php' method='GET'&gt;
   &lt;input type='hidden' name='number' value='$order++' /&gt;
   &lt;input class='big_b' type='submit'  value='next' /&gt; 
 &lt;/form&gt;";

 echo "$order";
 ?&gt;
</code></pre>

<p>The first time 1 push the button $order is 1, the second 2, the third is 3 ... etc</p>

<p>Thanks for your help!   </p>

<p>EDIT: SOLVED</p>

<pre><code> &lt;?php 
 session_start();
 if(empty($_SESSION['count'])) $_SESSION['count'] = 0;
 $order =  $_SESSION['count']+1;
 $_SESSION['count'] =  $order; 

 echo "&lt;form action='study.php' method='GET'&gt;
        &lt;input class='big_b' type='submit'  value='next' /&gt; 
    &lt;/form&gt;";

 echo "$order";
 ?&gt;
</code></pre>
