can a POST file handle multiple requests?
<p>i have a file user_submit.php that handle all the POST requests.
what i am doing is i am sending small integer values through jquery POST method. these integer values are sent one at a time around 10 times.</p>

<p>what i want to do is i want to add all these values up and provide a final result after the last step.</p>

<p>so i am doing:</p>

<pre><code>$score = intval($_POST['score']);
$total = $total+$score;
echo $total;
</code></pre>

<p>but it fails to sum all the values up. as soon as i send the second value, the file forgets the first value. i mean the first value doesnt get stored in $total for use in the second request.</p>

<p>how do i go about it?</p>
