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.

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

so i am doing:

```
$score = intval($_POST['score']);
$total = $total+$score;
echo $total;

```

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.

how do i go about it?