reading input values when inputs (textboxes) are in a form

T

Troy Crowder

FrontPage 2002
Windows XP

I have an order form composed of quantities and prices.
This order form is in a Front Page form. It works great
to email (or write to file) the number of items ordered
and shows a confirmation page confirming the quantity
ordered.

I would like to use a script to calculate a total invoice
price. However, I cannot find a way to read the values
the user enters in the form's text boxes (when they are in
the FrontPage form). If I remove the text boxes from the
form, then I can read their contents (values). But then,
of course, the Submit button is no longer available.

Is there a way to read the contents of text boxes when
they are inside a FrontPage form? Obviously there is, as
the confirmation page does it. But how do I get these
values to use in a script?

Again, I can do this outside a form. The problem only
occurs when the textboxes are in a form.

Thanks for the help.

Troy Crowder
(e-mail address removed)
 
T

Troy Crowder

This is a sample fragment of the solution.
I was leaving out the fact that the text boxes were
contained in a form. Thus they must be referred to as:
window.FrontPage_Form1.Contact_FullName.value

START CODE FRAG
Sub cmdCal_onclick
'Word wrap is set on. The next line is really one long
line.
msgbox "The value in the contact name box is: "
& window.FrontPage_Form1.Contact_FullName.value & " The
value in CT quantity is: " &
window.FrontPage_Form1.txtCTQuanity.value & " The value
in MM quantity is: " &
window.FrontPage_Form1.txMMQuanity.value

End Sub

END CODE FRAG
 

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