It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Total up values in textboxes

Total up values in textboxes

Postby hazrizal84 on Wed Oct 14, 2009 4:23 pm

hi guys..firstly i'm sorry if my english is terrible.
i need some help in solving my problem..

in my webpage, i've a form which contains several textboxes and a submit button. all the textboxes are generated using php looping method. the codes are simply like this..

<?
for($i=0;$i<5;$i++){
?>
<input type=textbox name='<? echo "boxes[$i]";?>'>
<?
}
?>

so, what i wanna do is, when user click the submit button, it will sum up all the textboxes values and pop up alert message telling the total value.

thanx in advance..
hazrizal84
 
Posts: 22
Joined: Tue Jun 10, 2008 11:25 am

Who is online

Users browsing this forum: No registered users and 6 guests