Forums
This topic is locked
Hi. I'm new here but got a question
Posted 07 Jul 2005 18:12:14
1
has voted
07 Jul 2005 18:12:14 lol Swordtip posted:
Hello. I was wondering if you guys would give me a helping hand. The thing is I'm making a web "page" that calculates shipping charge in $. I want the user to input pounds and then to select a state. When they select a certain number of pounds(ie; 12) and they select a state(New York) they get the shipping fee($22.95). I also want to be able to do so with international countries. I have the shipping charts so if you ready to help me I can email you them. My current code is:<pre id=code><font face=courier size=2 id=code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript">
</script>
<script type="text/javascript">
function getFee() {
alert('Shipping fee is '+document.zipform.us_states.value*document.zipfor m.weight.value);
}
</script>
<form action="google.ca" name="zipform" target="_blank">
<input type="hidden" name="OZ" value="l3j8s1">
<b> <BR>Shipping Calculator</b><P><P><P></h1><b>Weight in POUNDS:</b> <input type="text" name="weight" tabindex="2" size="6" maxlength="6">
<br
<input type="hidden" name="LP" value="package"><input type="hidden" name="Char" value="4"><input type="hidden" name="OV" value="off"><input type="hidden" name="BL" value="off"><input type="hidden" name="Dir" value="forward"><input type="hidden" name="retspec" value="no">
<br><b>Buyers State if in US: </b>
<select name="us_states" size="1">
<option value="" selected="selected">None</option>
<option value="$26.25">AL Alabama</option>
<option value="Unkown">AK Alaska</option>
<option value="$29.25">AZ Arizona</option>
<option value="$26.25">AR Arkansas</option>
<option value="$28.95">CA California</option>
<option value="$28.95">CO Colorado</option>
<option value="$24.00">CT Connecticut</option>
<option value="$24.00">DE Delaware</option>
<option value="$23.90">DC District of Columbia</option>
<option value="$26.25">FL Florida</option>
<option value="$26.25">GA Georgia</option>
<option value="Unknown">HI Hawaii</option>
<option value="$28.95">ID Idaho</option>
<option value="$23.90">IL Illinois</option>
<option value="$28.95">IN Indiana</option>
<option value="$24.30">IA Iowa</option>
<option value="$26.25">KS Kansas</option>
<option value="$24.30">KY Kentucky</option>
<option value="$26.25">LA Louisiana</option>
<option value="$24.30">ME Maine</option>
<option value="$24.00">MD Maryland</option>
<option value="$24.00">MA Massachusetts</option>
<option value="$23.90">MI Michigan</option>
<option value="Unkown">MN Minnesota</option>
<option value="$26.25">MS Mississippi</option>
<option value="$26.25">MO Missouri</option>
<option value="$28.95">MT Montana</option>
<option value="$26.25">NE Nebraska</option>
<option value="$29.25">NV Nevada</option>
<option value="$24.00">NH New Hampshire</option>
<option value="$24.00">NJ New Jersey</option>
<option value="$28.95">NM New Mexico</option>
<option value="$22.95">NY New York</option>
<option value="$24.30">NC North Carolina</option>
<option value="$26.25">ND North Dakota</option>
<option value="$23.90">OH Ohio</option>
<option value="$26.25">OK Oklahoma</option>
<option value="$26.25">OR Oregon</option>
<option value="$24.00">PA Pennsylvania</option>
<option value="$24.00">RI Rhode Island</option>
<option value="$24.30">SC South Carolina</option>
<option value="$26.25">SD South Dakota</option>
<option value="$24.30">TN Tennessee</option>
<option value="$26.25">TX Texas</option>
<option value="$28.95">UT Utah</option>
<option value="$24.00">VT Vermont</option>
<option value="$24.00">VA Virginia</option>
<option value="$28.95">WA Washington</option>
<option value="$24.00">WV West Virginia</option>
<option value="$24.30">WI Wisconsin</option>
<option value="$28.95">WY Wyoming</option>
</select>
<BR><input type=submit value="submit" name=zipok accesskey='c' onclick="getFee();"></form><P><P>
<br>
<br>
<br>
</head>
<body>
</body>
</html> </font id=code></pre id=code>
Thanks.