Form Handler Problem

S

samuel

I have a form called form and this form has a field
called field2 where you input a number. It also has a
hidden field called total1 with 0 as the initial value.

I have inserted this form handler so total1 becomes
field2 when I click submit.

<input type="submit" value="Next" name="B1"
onclick="this.form.total1.value = parseInt
(this.form.field2.value);return true;">

When I click submit, i get this error before I get to the
next page.

A runtime error has ocurred. Do you wish to debug?
Line 1101.
Error:'this.form.total1' is null or not an object.


Can anyone tell me what may be wrong?


Samuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top