Hi All,
I am doing a website and I need some help with Javascript - as I am creating an online Order form which can be filled by the customer and comes to me as email. I cannot use CGI as our server does not support CGI on our hosting plan.
Purpose of this form is to enable users to select products and associated quantities along with their contact details and send it to us via HTML Post function.
I need to use Javascript to provide a running total of the products ordered, calculate the GST Tax component (10%) and the final total.
The form looks like this:
DVD's & VCD's that are currently for sale
DVD1: $300
DVD2 : $250
DVD3: $223
VCD1: $123
VCD2: $212
Optional Extras which can be brought
DVD/CD without the Manuals but with Glossy pics of facilities in video : $15 extra / DVD
DVD/CD with the Manuals and with Glossy pics of facilities in video : $23 extra / DVD
The form would then have the standard input area for users to provide their name phone address etc.
Calculated Fields include : (this should provide the customer with name of fields which are being calculated)
Total for Order
GST (10%)
Grand Total (Total + GST)
I have created a form and managed to validate the fields but i m having trouble doing the running total, gst and the grand total
If someone can help me with the Javascipt to do these totals I would be greatly obliged.
Thanks,
Tanuj
I am doing a website and I need some help with Javascript - as I am creating an online Order form which can be filled by the customer and comes to me as email. I cannot use CGI as our server does not support CGI on our hosting plan.
Purpose of this form is to enable users to select products and associated quantities along with their contact details and send it to us via HTML Post function.
I need to use Javascript to provide a running total of the products ordered, calculate the GST Tax component (10%) and the final total.
The form looks like this:
DVD's & VCD's that are currently for sale
DVD1: $300
DVD2 : $250
DVD3: $223
VCD1: $123
VCD2: $212
Optional Extras which can be brought
DVD/CD without the Manuals but with Glossy pics of facilities in video : $15 extra / DVD
DVD/CD with the Manuals and with Glossy pics of facilities in video : $23 extra / DVD
The form would then have the standard input area for users to provide their name phone address etc.
Calculated Fields include : (this should provide the customer with name of fields which are being calculated)
Total for Order
GST (10%)
Grand Total (Total + GST)
I have created a form and managed to validate the fields but i m having trouble doing the running total, gst and the grand total
If someone can help me with the Javascipt to do these totals I would be greatly obliged.
Thanks,
Tanuj