You can get a full list of countries by grabbing a piece of something like osCommerce. Once you have the drop down list you can attach an onchange or onclick event to it and handle it a similar same way as before - i.e. call
typeOfCarriage(this.selectedIndex);calculate();
There will now be a lot more different shipping rates to figure out! In the function typeOfCarriage in place of the string it took before you will now get an int and you can have a case switch to do different things depending on the selected country.
Hope this makes sense.



LinkBack URL
About LinkBacks






Bookmarks