How to print total

  • Thread starter Thread starter Thor
  • Start date Start date
T

Thor

I'm writing an order form -- very simple:

How many calendars do you want at $8.73 each?
Here's how much to send us:___

The number of calendars goes into a form variable called "calendars"
How do I print out 8,73 x calendars?


(I've tried to script this, but I'm getting nowhere)

GRB
 
I'm writing an order form -- very simple:

How many calendars do you want at $8.73 each?
Here's how much to send us:___

The number of calendars goes into a form variable called "calendars"
How do I print out 8,73 x calendars?

(I've tried to script this, but I'm getting nowhere)

GRB


What language are you scripting in? PHP, ASP, .Net?
 
See http://irt.org/script/1003.htm

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| I'm writing an order form -- very simple:
|
| How many calendars do you want at $8.73 each?
| Here's how much to send us:___
|
| The number of calendars goes into a form variable called "calendars"
| How do I print out 8,73 x calendars?
|
|
| (I've tried to script this, but I'm getting nowhere)
|
| GRB
|
|
 
Thanks, Stefan. This was helpful up to a point:

I've designated the "total" field as Total_Cost. Then in the input field
for quantity, I specified

onchange="this.form.Total_Cost.value=this.form.Calendars.value*10"

Lo and behold, it works fine in Preview mode. But not in a browser! I've
tried both Outlook Express and Firefox. When I tab past the quantity field,
the cursor moves to but doesn't update the "total" field.

Can you help fix this?

Where should I have looked to know that the appropriate variable is
"this.form.XXX.value"? IOW, where can I find the Object Model for this?
 
Back
Top