P1x44r
New member
Want to improve this, but time does not permit sadly. I created this tool to calculate proper amount to pay when ordering out. Very lazy code that I'm not proud of, so hoping someone will post back a more flexible version of this calculator.
Right now it's obviously configured to Quebec, Canada, but those constants could be changed in the code easily to suit your needs. IE support was not tested and I suspect it will NOT work under it. I run this in Firefox.
Download Sales Tax Calculator
View Live Demo
Files Included:
Right now it's obviously configured to Quebec, Canada, but those constants could be changed in the code easily to suit your needs. IE support was not tested and I suspect it will NOT work under it. I run this in Firefox.
Download Sales Tax Calculator
View Live Demo
Files Included:
- index.php - HTML form.
- tax.css - CSS to make it a little prettier.
- tax.js - function fired on form submit which posts to the PHP page below with AJAX. Handles the return as well.
- tax.ajx.php - PHP code to calculate and return tax amounts.