| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
How can I do math from forms
|
Original Message
|
Name: Geiri
Date: February 9, 2004 at 18:56:07 Pacific
Subject: How can I do math from formsOS: winXpCPU/Ram: 2000/1gb |
Comment: I am trying to create a simple web page wich uses has to do math from option button Like this: Option 1 is 100 Option 2 is 200 Option 3 is 300 If option 1 and 3 are selected you get a total of 400 printed on the page etc... Now how is this done ? A sample script would be great. Geiri
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: SN
Date: February 9, 2004 at 19:24:50 Pacific
|
Reply: (edit)I would guess that by option you mean checkboxes... Anyhow check this recent post: http://www.computing.net/programming/wwwboard/forum/9443.html -SN
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: Geiri
Date: February 13, 2004 at 20:55:34 Pacific
|
Reply: (edit)All most what I had in mind but not. I was thinking of a list of Numbers and a radio button with each number. Like 100 () 200 () 300 () If you would click 100+300 you would get 400 :) of course
Any one know how to do that ? Geiri
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: SN
Date: February 13, 2004 at 22:15:41 Pacific
|
Reply: (edit)Radio buttons are (supposed to be) mutually exclusive...So you shouldn't be able to check more than one at a time. You should practice taking scripts that are "almost" what you need and be able to make minor adjustments to suit your needs. The example I posted would only need a few small changes...onclick instead of onchange, checkboxes instead of the SELECT tag. -SN
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Web Development Forum Home