title: How can I increase php variable's value every time form is submitted?
body: <p>I have a variable in php, called <code>$number</code>, and I have a submit button:</p>
  <p><code>&lt;form method=&quot;get&quot;&gt;&lt;button type=&quot;submit&quot; value=&quot;&lt;?php echo $number; ?&gt; name=&quot;next&quot;&gt;Next&lt;/button&gt;&lt;/form&gt;</code>.</p>
  <p>What I'd like to achieve, is to increase the value of that variable, by 10 for example, every time the form is submitted.</p>
  <p>First this is how I'd tried it:</p>
  <pre><code>if(isset($_GET['next'])){
  $number+=10;
  }
  </code></pre>
  <p>But this code only increases its value once.</p>
  <p>I've tried several methods that are not really worth mentioning, but none of them worked unfortunately.</p>