HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1249
Number of posts: 3348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to calculate a total from an html form Posted by bart47 on 24 Aug 2010 at 6:48 PM
I am very new to javascript but I am trying to calculate a total from information entered on a form. I need something like the following:
<td>$173 per Association Member: </td><td> <select name="Fee1" >
<option value='0'> None $0.00 </option>
<option value='173'> One $173.00 </option>
<option value='256'> Two $256.00 </option>
</select> <br /> </td></tr>
<tr>
<td>$125 per Guest: </td><td> <select name="Fee2">
<option value=0> None $0.00 </option>
<option value=125> One $125.00 </option>
<option value=250> Two $250.00 </option>
<option value=375> Three $375.00 </option>
<option value=500> Four $500.00 </option>
</select <br /> </td> </tr>
<td> $ <input type="text" name="Totalfee" id="Totalfee" readonly="true" size='9' ></td>

I need to be able to determine the values selected on each line a calculate the total so I can insert it into my database. I haven't found any way to go this. Any help would be appreciated
Report
This post has been deleted. Posted by acumensoft on 26 Nov 2010 at 5:53 AM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.