DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   HTML and CSS (http://www.daniweb.com/forums/forum143.html)
-   -   HTML code for a freight calculator? (http://www.daniweb.com/forums/thread122982.html)

dogondoor May 7th, 2008 10:10 am
HTML code for a freight calculator?
 
Hi to all forum members ,

I'm building a site for an air freight company and wondered if anyone out there has some html code for a freight calculator. The 5 fields i need are

KG
Length
Heigtht
Width
Destination Airport

I need to be able to enter predefined values dependant on the destination airport.

Any help would be very welcomed !!!!

buddylee17 May 7th, 2008 10:55 am
Re: HTML code for a freight calculator?
 
HTML can't do math. You'll have to use JavaScript or something server side. What's the formula for the calculation?

dogondoor May 7th, 2008 11:15 am
Re: HTML code for a freight calculator?
 
Thanks for the answer , the formula would be something like

Freight total =
KGs x Seleted Destination tariff per kg + Fixed amount for taxes etc.

Or

Volume x Selected Destination tarrif per m3 + Fixed amount for tax etc.

Whichever is greater


All times are GMT -4. The time now is 3:55 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC