close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Totaling #s and having it show in a text box

Thread began 11/10/2011 3:51 pm by tdhkfinkel424121 | Last modified 11/11/2011 3:23 pm by tdhkfinkel424121 | 1064 views | 2 replies |

tdhkfinkel424121

Totaling #s and having it show in a text box

I'm having trouble with a form where I need to have 2 numbers (that the user enters ) multiply and then have the total or sum show in the Sub Total text box.

I need to know how to do this...
Here's what I have so far:

<input id="Mooring_Sub_Total" name="Mooring_Sub_Total" type="text" value="
<?php
echo(floatval((isset($_POST["txtSUMMER_Moor_LOA_Boat"]))?$_POST["txtSUMMER_Moor_LOA_Boat"]:"" * (isset($_GET["txtSummer_Moor_Price"]))?$_POST["txtSummer_Moor_Price"]:""))?>"
class="formTextfield_Medium" tabindex="36" onBlur="hideServerError('Mooring_Sub_Total_ServerError');">
</span>

I know this is something that the ecart coulb pbrobably do but have the rest of the form working I don't want to have to re-create it in another (new) program.

Thanks for the help in advance

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to hand code a javascript function to accomplish this.

here a couple pages i found through google that have details on how to accomplish this sort of thing:

Lesson06.htm
_INPUT_onChange.html

Sign in to reply to this post

tdhkfinkel424121

Re:Totaling #s and having it show in a text box

Thanks,
I'll give them a try

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...