PC Review


Reply
Thread Tools Rate Thread

adding two form fields and displaying the result

 
 
Russell
Guest
Posts: n/a
 
      14th Nov 2004
Is there a way to accept 2 numbers as input in form fields and add them
together and display the result in a confirmation page? I am on a UNIX
server with FPE.

Thanks, Russell




 
Reply With Quote
 
 
 
 
MD Websunlimited
Guest
Posts: n/a
 
      14th Nov 2004
Hi Russell,

Just JavaScript

You'll need at least three fields with the two fields that need to be add above the last field in the form.

The code would be <input type="text" name="Value1" onblur="this.form.Total.value = this.form.Value2.value + this.value" >
The code for the next field would be <input type="text" name="Value2" onblur="this.form.Total.value = this.form.Value1.value +
this.value" >

You may also wish to take a look at http://www.websunlimited.com/order/P...c/formcalc.htm

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible

"Russell" <(E-Mail Removed)> wrote in message news:e$(E-Mail Removed)...
> Is there a way to accept 2 numbers as input in form fields and add them
> together and display the result in a confirmation page? I am on a UNIX
> server with FPE.
>
> Thanks, Russell
>
>
>
>



 
Reply With Quote
 
Russell
Guest
Posts: n/a
 
      14th Nov 2004
Thank you Mike, I will try this and also look at the product link.

Russell

"MD Websunlimited" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Russell,
>
> Just JavaScript
>
> You'll need at least three fields with the two fields that need to be add

above the last field in the form.
>
> The code would be <input type="text" name="Value1"

onblur="this.form.Total.value = this.form.Value2.value + this.value" >
> The code for the next field would be <input type="text" name="Value2"

onblur="this.form.Total.value = this.form.Value1.value +
> this.value" >
>
> You may also wish to take a look at

http://www.websunlimited.com/order/P...c/formcalc.htm
>
> --
> Mike -- FrontPage MVP '97-'02
> http://www.websunlimited.com
> FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>
> "Russell" <(E-Mail Removed)> wrote in message

news:e$(E-Mail Removed)...
> > Is there a way to accept 2 numbers as input in form fields and add them
> > together and display the result in a confirmation page? I am on a UNIX
> > server with FPE.
> >
> > Thanks, Russell
> >
> >
> >
> >

>
>



 
Reply With Quote
 
Russell
Guest
Posts: n/a
 
      14th Nov 2004
Hello again,

I tried the code you gave me Mike, it didn't work for me.

Is the Form Calculator add-in at webs unlimited able to add two fields
submitted on one page and display it as a field on another page (ala FP's
confirmation page)?

Thanks, Russell



"Russell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you Mike, I will try this and also look at the product link.
>
> Russell
>
> "MD Websunlimited" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Hi Russell,
> >
> > Just JavaScript
> >
> > You'll need at least three fields with the two fields that need to be

add
> above the last field in the form.
> >
> > The code would be <input type="text" name="Value1"

> onblur="this.form.Total.value = this.form.Value2.value + this.value" >
> > The code for the next field would be <input type="text" name="Value2"

> onblur="this.form.Total.value = this.form.Value1.value +
> > this.value" >
> >
> > You may also wish to take a look at

> http://www.websunlimited.com/order/P...c/formcalc.htm
> >
> > --
> > Mike -- FrontPage MVP '97-'02
> > http://www.websunlimited.com
> > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> >
> > "Russell" <(E-Mail Removed)> wrote in message

> news:e$(E-Mail Removed)...
> > > Is there a way to accept 2 numbers as input in form fields and add

them
> > > together and display the result in a confirmation page? I am on a UNIX
> > > server with FPE.
> > >
> > > Thanks, Russell
> > >
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Bob Lehmann
Guest
Posts: n/a
 
      14th Nov 2004
Ahhh....

The old "didn't work" problem.

What "didn't work"? Addition errors? Flat tire? Engine light on? Can't
attract women? Demons flying out from your monitor?

Bob Lehmann

"Russell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello again,
>
> I tried the code you gave me Mike, it didn't work for me.
>
> Is the Form Calculator add-in at webs unlimited able to add two fields
> submitted on one page and display it as a field on another page (ala FP's
> confirmation page)?
>
> Thanks, Russell
>
>
>
> "Russell" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thank you Mike, I will try this and also look at the product link.
> >
> > Russell
> >
> > "MD Websunlimited" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > Hi Russell,
> > >
> > > Just JavaScript
> > >
> > > You'll need at least three fields with the two fields that need to be

> add
> > above the last field in the form.
> > >
> > > The code would be <input type="text" name="Value1"

> > onblur="this.form.Total.value = this.form.Value2.value + this.value" >
> > > The code for the next field would be <input type="text" name="Value2"

> > onblur="this.form.Total.value = this.form.Value1.value +
> > > this.value" >
> > >
> > > You may also wish to take a look at

> > http://www.websunlimited.com/order/P...c/formcalc.htm
> > >
> > > --
> > > Mike -- FrontPage MVP '97-'02
> > > http://www.websunlimited.com
> > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> > >
> > > "Russell" <(E-Mail Removed)> wrote in message

> > news:e$(E-Mail Removed)...
> > > > Is there a way to accept 2 numbers as input in form fields and add

> them
> > > > together and display the result in a confirmation page? I am on a

UNIX
> > > > server with FPE.
> > > >
> > > > Thanks, Russell
> > > >
> > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Russell
Guest
Posts: n/a
 
      14th Nov 2004

I got script errors "object required"





"Bob Lehmann" <(E-Mail Removed)> wrote in message
news:uQ$(E-Mail Removed)...
> Ahhh....
>
> The old "didn't work" problem.
>
> What "didn't work"? Addition errors? Flat tire? Engine light on? Can't
> attract women? Demons flying out from your monitor?
>
> Bob Lehmann
>
> "Russell" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello again,
> >
> > I tried the code you gave me Mike, it didn't work for me.
> >
> > Is the Form Calculator add-in at webs unlimited able to add two fields
> > submitted on one page and display it as a field on another page (ala

FP's
> > confirmation page)?
> >
> > Thanks, Russell
> >
> >
> >
> > "Russell" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Thank you Mike, I will try this and also look at the product link.
> > >
> > > Russell
> > >
> > > "MD Websunlimited" <(E-Mail Removed)> wrote in message
> > > news:%(E-Mail Removed)...
> > > > Hi Russell,
> > > >
> > > > Just JavaScript
> > > >
> > > > You'll need at least three fields with the two fields that need to

be
> > add
> > > above the last field in the form.
> > > >
> > > > The code would be <input type="text" name="Value1"
> > > onblur="this.form.Total.value = this.form.Value2.value + this.value" >
> > > > The code for the next field would be <input type="text"

name="Value2"
> > > onblur="this.form.Total.value = this.form.Value1.value +
> > > > this.value" >
> > > >
> > > > You may also wish to take a look at
> > > http://www.websunlimited.com/order/P...c/formcalc.htm
> > > >
> > > > --
> > > > Mike -- FrontPage MVP '97-'02
> > > > http://www.websunlimited.com
> > > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> > > >
> > > > "Russell" <(E-Mail Removed)> wrote in message
> > > news:e$(E-Mail Removed)...
> > > > > Is there a way to accept 2 numbers as input in form fields and add

> > them
> > > > > together and display the result in a confirmation page? I am on a

> UNIX
> > > > > server with FPE.
> > > > >
> > > > > Thanks, Russell
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
MD Websunlimited
Guest
Posts: n/a
 
      14th Nov 2004
Did you change the names in the script to match the names of your fields?

--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible

"Russell" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>
> I got script errors "object required"
>
>
>
>
>
> "Bob Lehmann" <(E-Mail Removed)> wrote in message
> news:uQ$(E-Mail Removed)...
>> Ahhh....
>>
>> The old "didn't work" problem.
>>
>> What "didn't work"? Addition errors? Flat tire? Engine light on? Can't
>> attract women? Demons flying out from your monitor?
>>
>> Bob Lehmann
>>
>> "Russell" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Hello again,
>> >
>> > I tried the code you gave me Mike, it didn't work for me.
>> >
>> > Is the Form Calculator add-in at webs unlimited able to add two fields
>> > submitted on one page and display it as a field on another page (ala

> FP's
>> > confirmation page)?
>> >
>> > Thanks, Russell
>> >
>> >
>> >
>> > "Russell" <(E-Mail Removed)> wrote in message
>> > news:(E-Mail Removed)...
>> > > Thank you Mike, I will try this and also look at the product link.
>> > >
>> > > Russell
>> > >
>> > > "MD Websunlimited" <(E-Mail Removed)> wrote in message
>> > > news:%(E-Mail Removed)...
>> > > > Hi Russell,
>> > > >
>> > > > Just JavaScript
>> > > >
>> > > > You'll need at least three fields with the two fields that need to

> be
>> > add
>> > > above the last field in the form.
>> > > >
>> > > > The code would be <input type="text" name="Value1"
>> > > onblur="this.form.Total.value = this.form.Value2.value + this.value" >
>> > > > The code for the next field would be <input type="text"

> name="Value2"
>> > > onblur="this.form.Total.value = this.form.Value1.value +
>> > > > this.value" >
>> > > >
>> > > > You may also wish to take a look at
>> > > http://www.websunlimited.com/order/P...c/formcalc.htm
>> > > >
>> > > > --
>> > > > Mike -- FrontPage MVP '97-'02
>> > > > http://www.websunlimited.com
>> > > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>> > > >
>> > > > "Russell" <(E-Mail Removed)> wrote in message
>> > > news:e$(E-Mail Removed)...
>> > > > > Is there a way to accept 2 numbers as input in form fields and add
>> > them
>> > > > > together and display the result in a confirmation page? I am on a

>> UNIX
>> > > > > server with FPE.
>> > > > >
>> > > > > Thanks, Russell
>> > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
MD Websunlimited
Guest
Posts: n/a
 
      14th Nov 2004
In directly it could by setting the value of the field that is displayed on the confirmation page.

--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible

"Russell" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hello again,
>
> I tried the code you gave me Mike, it didn't work for me.
>
> Is the Form Calculator add-in at webs unlimited able to add two fields
> submitted on one page and display it as a field on another page (ala FP's
> confirmation page)?
>
> Thanks, Russell
>
>
>
> "Russell" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thank you Mike, I will try this and also look at the product link.
>>
>> Russell
>>
>> "MD Websunlimited" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>> > Hi Russell,
>> >
>> > Just JavaScript
>> >
>> > You'll need at least three fields with the two fields that need to be

> add
>> above the last field in the form.
>> >
>> > The code would be <input type="text" name="Value1"

>> onblur="this.form.Total.value = this.form.Value2.value + this.value" >
>> > The code for the next field would be <input type="text" name="Value2"

>> onblur="this.form.Total.value = this.form.Value1.value +
>> > this.value" >
>> >
>> > You may also wish to take a look at

>> http://www.websunlimited.com/order/P...c/formcalc.htm
>> >
>> > --
>> > Mike -- FrontPage MVP '97-'02
>> > http://www.websunlimited.com
>> > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>> >
>> > "Russell" <(E-Mail Removed)> wrote in message

>> news:e$(E-Mail Removed)...
>> > > Is there a way to accept 2 numbers as input in form fields and add

> them
>> > > together and display the result in a confirmation page? I am on a UNIX
>> > > server with FPE.
>> > >
>> > > Thanks, Russell
>> > >
>> > >
>> > >
>> > >
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
MD Websunlimited
Guest
Posts: n/a
 
      14th Nov 2004
Bob,

Why so rude? If you think you're being funny it is not, IMHO.
--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible

"Bob Lehmann" <(E-Mail Removed)> wrote in message news:uQ$(E-Mail Removed)...
> Ahhh....
>
> The old "didn't work" problem.
>
> What "didn't work"? Addition errors? Flat tire? Engine light on? Can't
> attract women? Demons flying out from your monitor?
>
> Bob Lehmann
>
> "Russell" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello again,
>>
>> I tried the code you gave me Mike, it didn't work for me.
>>
>> Is the Form Calculator add-in at webs unlimited able to add two fields
>> submitted on one page and display it as a field on another page (ala FP's
>> confirmation page)?
>>
>> Thanks, Russell
>>
>>
>>
>> "Russell" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Thank you Mike, I will try this and also look at the product link.
>> >
>> > Russell
>> >
>> > "MD Websunlimited" <(E-Mail Removed)> wrote in message
>> > news:%(E-Mail Removed)...
>> > > Hi Russell,
>> > >
>> > > Just JavaScript
>> > >
>> > > You'll need at least three fields with the two fields that need to be

>> add
>> > above the last field in the form.
>> > >
>> > > The code would be <input type="text" name="Value1"
>> > onblur="this.form.Total.value = this.form.Value2.value + this.value" >
>> > > The code for the next field would be <input type="text" name="Value2"
>> > onblur="this.form.Total.value = this.form.Value1.value +
>> > > this.value" >
>> > >
>> > > You may also wish to take a look at
>> > http://www.websunlimited.com/order/P...c/formcalc.htm
>> > >
>> > > --
>> > > Mike -- FrontPage MVP '97-'02
>> > > http://www.websunlimited.com
>> > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>> > >
>> > > "Russell" <(E-Mail Removed)> wrote in message
>> > news:e$(E-Mail Removed)...
>> > > > Is there a way to accept 2 numbers as input in form fields and add

>> them
>> > > > together and display the result in a confirmation page? I am on a

> UNIX
>> > > > server with FPE.
>> > > >
>> > > > Thanks, Russell
>> > > >
>> > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Russell
Guest
Posts: n/a
 
      15th Nov 2004
Hello Mike,

I must admit I got confused .....

So here is what I'm trying to do , with my form names. If you would be so
kinds as to do the code again using my form fields I would appreciate it
very much.

<input type="hidden" name="constant" value="20.00">
<input type="text" name="amt" size="9" >

I want to add these two fields and display the result as a field
(totalvalue) in the FP confirmation form .


Thank You

Russell



"MD Websunlimited" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Did you change the names in the script to match the names of your fields?
>
> --
> Mike -- FrontPage MVP '97-'02
> J-Bots 2004 Released Special Pricing
> http://www.websunlimited.com
> FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
>
> "Russell" <(E-Mail Removed)> wrote in message

news:(E-Mail Removed)...
> >
> > I got script errors "object required"
> >
> >
> >
> >
> >
> > "Bob Lehmann" <(E-Mail Removed)> wrote in message
> > news:uQ$(E-Mail Removed)...
> >> Ahhh....
> >>
> >> The old "didn't work" problem.
> >>
> >> What "didn't work"? Addition errors? Flat tire? Engine light on? Can't
> >> attract women? Demons flying out from your monitor?
> >>
> >> Bob Lehmann
> >>
> >> "Russell" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >> > Hello again,
> >> >
> >> > I tried the code you gave me Mike, it didn't work for me.
> >> >
> >> > Is the Form Calculator add-in at webs unlimited able to add two

fields
> >> > submitted on one page and display it as a field on another page (ala

> > FP's
> >> > confirmation page)?
> >> >
> >> > Thanks, Russell
> >> >
> >> >
> >> >
> >> > "Russell" <(E-Mail Removed)> wrote in message
> >> > news:(E-Mail Removed)...
> >> > > Thank you Mike, I will try this and also look at the product link.
> >> > >
> >> > > Russell
> >> > >
> >> > > "MD Websunlimited" <(E-Mail Removed)> wrote in message
> >> > > news:%(E-Mail Removed)...
> >> > > > Hi Russell,
> >> > > >
> >> > > > Just JavaScript
> >> > > >
> >> > > > You'll need at least three fields with the two fields that need

to
> > be
> >> > add
> >> > > above the last field in the form.
> >> > > >
> >> > > > The code would be <input type="text" name="Value1"
> >> > > onblur="this.form.Total.value = this.form.Value2.value +

this.value" >
> >> > > > The code for the next field would be <input type="text"

> > name="Value2"
> >> > > onblur="this.form.Total.value = this.form.Value1.value +
> >> > > > this.value" >
> >> > > >
> >> > > > You may also wish to take a look at
> >> > > http://www.websunlimited.com/order/P...c/formcalc.htm
> >> > > >
> >> > > > --
> >> > > > Mike -- FrontPage MVP '97-'02
> >> > > > http://www.websunlimited.com
> >> > > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> >> > > >
> >> > > > "Russell" <(E-Mail Removed)> wrote in message
> >> > > news:e$(E-Mail Removed)...
> >> > > > > Is there a way to accept 2 numbers as input in form fields and

add
> >> > them
> >> > > > > together and display the result in a confirmation page? I am on

a
> >> UNIX
> >> > > > > server with FPE.
> >> > > > >
> >> > > > > Thanks, Russell
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying query result on the same form as selection fields Joe M. Microsoft Access 6 1st Oct 2009 04:05 PM
Displaying form as a search result =?Utf-8?B?c2hpa2hh?= Microsoft Frontpage 4 29th Jun 2006 04:27 PM
displaying the result of a calculation on another form =?Utf-8?B?bHlubiBhdGtpbnNvbg==?= Microsoft Access Forms 5 9th Feb 2005 02:25 PM
Displaying result of Count on a form =?Utf-8?B?S29zaWs=?= Microsoft Access Form Coding 6 28th Sep 2004 05:40 PM
displaying result from VBA into a control of form mk sabeel Microsoft Access Forms 6 24th Jul 2003 03:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 AM.