close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Calculations in a form?

Thread began 11/15/2011 11:26 pm by Mark_Rinella291330 | Last modified 11/17/2011 9:48 am by Jason Byrnes | 928 views | 3 replies |


Calculations in a form?


Is there a best/easy way to include a form that can do calculations?

I have clients that want "Order Forms" which would inlude:

Item Name, Price, the customer enters the quantity, which multiplies by the price per unit which then would add in the Total Cell.

Should I just create it in Excel and/or an Adobe product and then have it download as an attachment that can e-mailed back, instead of trying to come up with an order form that will do calculations and then send that information via e-mail to an appropriate person.

I hope my question makes sense.

Thanks for any input and ideas anyone may have!

Take care,


Sign in to reply to this post


I think the only way you will achieve this on one page is via javascript. Either using the OnBlur on a text field or OnClick to get the total.

If you are happy that the totals are shown on a separate page you could use PHP, post the form elements and calculate the POST values.


Sign in to reply to this post


Just a basic order form?

Hello and thanks for your response!

I just want to create a basic order form.

I am fine with them downloading a Word Document or Excel Spreadsheet or Adobe Form and then the visitor completes the form on their computer and e-mails or submits and attaches the file.

I need a form that will do simple math.

Customer wants one chair at $5 per day for two days = $10 and then a total at the the bottom of the form.

They do not have to complete the form online.

Based on that information, do those options sound viable?

Thanks again!


Sign in to reply to this post

Jason ByrnesWebAssist

this will require hand coding javascript to accomplish.

see this tutorial i found through Google:

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





Ease of use


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...