nerbariass1967
New Member
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:\[code\]$score = intval($_POST['score']);$total = $total+$score;echo $total;\[/code\]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?