You can then use the $sum_ofsalary as the total of all salaries "default_salary" within the while loop..
Thanks for the Reply veedeoo, I'm sorry if I misunderstood you. the loop was ok. it's giving me all the salaries in the textboxes. What I want is, say for example i got 10 textboxes in a loop. In textboxes have values from the DB, and outside the loop there is one textbox which is the
<input type="text" name="sum" value="$????????">
. as you can see I'd like to put the sum of all textboxes in this value="$????????".
Hope I explained it well.
Thanks again guys.
anyway, just forget these lines. This is only for serial Number. :D