Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Order Form Calculation


Message #1 by "Brett M. Spahr" <bspahr@g...> on Mon, 15 Jul 2002 14:03:17 -0500

I have an order form similar to the following:
*tb stands for textbox under each item

I would like to be able to have the user enter the total # of items and then

have it automatically calculate the Grand Total at the bottom.

Does anyone know of a way to do this using asp or have a link to a script?


		item1	item2	item3	item4	item5	item6	item7
item8	TOTAL 
----------------------------------------------------------------------------
--------------
TOTAL ITEMS:	tb1	tb2	tb3	tb4	tb5	tb6	tb7	tb8
tb9
----------------------------------------------------------------------------
--------------
COST EACH	$5.00	$6.00	$7.00	$8.00	$9.00	$3.00	$4.00
$5.00	$6.00
----------------------------------------------------------------------------
--------------
GRAND TOTAL:	tb1	tb2	tb3	tb4	tb5	tb6	tb7	tb8
tb9
 
 
 
 

          
Message #2 by "CLINTON PARSLEY" <cparsley@m...> on Mon, 15 Jul 2002 13:43:02 -0700
if you want ( and I assume you do ) the form to total before submittal you 
will need to write a client-side script.

A good resource to check out is www.javascriptsource.com

hth,
Clint

-----------------------------------------
I would like to be able to have the user
enter the total # of items and then have
it automatically calculate the Grand Total
at the bottom.
------------------------------------------

_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


  Return to Index