Forum Moderators: open

Message Too Old, No Replies

add up forms

how to add up values in forms

         

krikri

11:48 am on Sep 13, 2003 (gmt 0)



Can someone help me.

I want a script to add up values in a form like this:

FOOD
1. 2. 3. 4. 5.

DRINK
1 2 3 4 5

The dots are radio buttons

I want the result to be like this(for example) :

FOOD
4

DRINK
4

TOTAL=8

I am using frontpage

Staffa

9:14 am on Sep 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Depending what server type your site is on you need a perl or asp form processing script to make this calculation.
There are plenty of free ones about, just run a search on any engine.

jrlaughlin

8:47 pm on Oct 14, 2003 (gmt 0)


You don't need perl or ASP.

You can do this easily in Javascript right on the browser.

Take a look at this example.

http://www.site-now.com/Examples/sumradios.htm

hth.

James.