I need to control what the user may input in a certain field.
This is what I have so far:
<input type="text" name="PROD_Nötfärs1kg_89.00" size="4" value="0" onChange="CalculateTotal(this.form)">
The problem whit this one field is that people still sends in orders for less than 5 kg (even though I have a big red text saying that you have to order at least 5 kg if you order this product), which is the least I want them to be able to order. How can I control the value in this specific field so that if the user inputs a value lower than 5 kg, an alert-message appears and the field resets.
I need something like:
1) If the user inputs a number lower than 5...
2) When he moves to another box or tries to sumbit the form...
3) Alert notice: "Minimum amount for this field is 5"
4) Field resets to 0.
Any help appreciated.
Best Regards
-Prinsallan
Advanced Form Check- Number too low
Started by prinsallan, Nov 23 2009 12:51 AM
7 replies to this topic
#1
Posted 23 November 2009 - 12:51 AM
|
|
|
#2
Posted 23 November 2009 - 02:32 AM
in your CalculateTotal, you could do a amount check
First, you need to set an id to your <input>
then, you need to read it's value and after that, check it's value;
this routine sets it to zero and alerts the user.
First, you need to set an id to your <input>
then, you need to read it's value and after that, check it's value;
this routine sets it to zero and alerts the user.
if (field.value>0 and field.value <5) {
field.value = 0;
alert("you need to order at least 5 kg Nötfärs");
}
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#3
Posted 23 November 2009 - 03:30 AM
Sounds like a great idea, however, I have no idea where to alter the script.
Im not a beginner, but if i put the additional script to what I already have, will this check every part of the form, or just the one I need?
Here is a copy of the entire page:
----------------------------------------------------------------
Im not a beginner, but if i put the additional script to what I already have, will this check every part of the form, or just the one I need?
Here is a copy of the entire page:
----------------------------------------------------------------
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 4">
<title>Kvills, beställningsformulär</title>
<script language="JavaScript" type="text/javascript">
<!--
/* This script is Copyright © Paul McFedries and
Logophilia Limited.
Permission is granted to use this script as long as
this Copyright notice remains in place.*/
function CalculateTotal(frm) {
var order_total = 0
// Run through all the form fields
for (var i=0; i < frm.elements.length; ++i) {
// Get the current field
form_field = frm.elements[i]
// Get the field's name
form_name = form_field.name
// Is it a "product" field?
if (form_name.substring(0,4) == "PROD") {
// If so, extract the price from the name
item_price = parseFloat(form_name.substring(form_name.lastIndexOf("_") + 1))
// Get the quantity
item_quantity = parseInt(form_field.value)
// Update the order total
if (item_quantity >= 0) {
order_total += item_quantity * item_price
}
}
}
// Display the total rounded to two decimal places
frm.TOTAL.value = round_decimals(order_total, 2)
}
function round_decimals(original_number, decimals) {
var result1 = original_number * Math.pow(10, decimals)
var result2 = Math.round(result1)
var result3 = result2 / Math.pow(10, decimals)
return pad_with_zeros(result3, decimals)
}
function pad_with_zeros(rounded_value, decimal_places) {
// Convert the number to a string
var value_string = rounded_value.toString()
// Locate the decimal point
var decimal_location = value_string.indexOf(".")
// Is there a decimal point?
if (decimal_location == -1) {
// If no, then all decimal places will be padded with 0s
decimal_part_length = 0
// If decimal_places is greater than zero, tack on a decimal point
value_string += decimal_places > 0 ? "." : ""
}
else {
// If yes, then only the extra decimal places will be padded with 0s
decimal_part_length = value_string.length - decimal_location - 1
}
// Calculate the number of decimal places that need to be padded with 0s
var pad_total = decimal_places - decimal_part_length
if (pad_total > 0) {
// Pad the string with 0s
for (var counter = 1; counter <= pad_total; counter++)
value_string += "0"
}
return value_string
}
//-->
</script>
<script type="text/javascript">
function AuthorizeValidation(myform) {
if(myform.bindande.checked == true) {myform.skicka.disabled = false }
if(myform.bindande.checked == false) {myform.skicka.disabled = true }
}
</script>
<script type="text/javascript">
function checkrequired(which) {
var pass=true;
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
}
}
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("The "+shortFieldName+" field is a required field.");
return false;
} else {
return true;
}
}
</script>
</head>
<body text="#ffffff" link="maroon" vlink="maroon" alink="maroon" background="bilder/bestall_brd.jpg">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" hspace="50">
<form action="/scripts/formmail.dll" method="post" name="myform" onSubmit="return checkrequired(this)" >
<INPUT TYPE=hidden NAME="From" VALUE="info@kvills.se">
<INPUT TYPE=hidden NAME="To" VALUE="info@kvills.se">
<INPUT TYPE=hidden NAME="Subject" VALUE="En ny order">
<INPUT TYPE=hidden NAME="Reply" VALUE="/success.html">
<tr>
<td valign="bottom"><div align="right"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><img src="bilder/space4x4.gif" alt="spacing_top" width="4" height="32">* = Obligatoriska fält</font>.<font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td valign="bottom" align="left"><div align="right"></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Namn (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requirednamn" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Adress (*):</font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredadress" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Postnummer (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredpostnummer" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Postadress (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredpostadress" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Telefon (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredtelefon" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">E-mail:</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="E-mail" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Jag vill beställa (bindande):<img src="bilder/space4x4.gif" alt="space" width="36" height="4" border="0">Antal:</font></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"></div></td>
<td align="left" valign="bottom"><label>
<div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">20 kg Nötlåda, 139 kr/kg</font>
<input type="text" name="PROD_Nötlåda20kg_2780.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</div>
</label></font></td></tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom">
<div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
10 kg Nötlåda, 149 kr/kg
<input type="text" name="PROD_Nötlåda10kg_1490.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</font></div>
<font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><label></label>
</font>
<div align="right"></div><div align="right"></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Nötfärs, 89 kr/kg, <font color="red"><strong><em>OBS!</em> min. 5kg</strong></font>
<input type="text" name="PROD_Nötfärs1kg_89.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</font></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
Kryddkorv, 1 kg låda, 199 kr/kg
<input type="text" name="PROD_Kryddkorv1kg_199.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</font></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Bok: "Bli säkrare i köket", 99 kr</font>
<input type="text" name="PROD_Boken_99.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Din summa, kr, ca:</font>
<input type="text" NAME=TOTAL size="8" value="0" id="Totalsumma" onFocus="this.form.elements[0].focus()">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font color="#000000"></font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font><font color="#000000"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font color="#000000">
</font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
<label>
<input type="checkbox" name="bindande" id="bindande" onClick="AuthorizeValidation(this.form)">
Jag binder mig</label>
</font><font color="#000000">
<input type="submit" value=" Skicka! " name="skicka" disabled />
</font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="reset" value=" Nollställ ">
</div>
</form></td>
</tr>
</table>
</div>
</body>
</html>
Edited by Orjan, 24 November 2009 - 11:32 PM.
Use code tags
#4
Posted 23 November 2009 - 03:39 AM
Read my comments in the middle here
function CalculateTotal(frm) {
var order_total = 0
// Run through all the form fields
for (var i=0; i < frm.elements.length; ++i) {
// Get the current field
form_field = frm.elements[i]
// Get the field's name
form_name = form_field.name
// Special for Nötfärs
if (form_field.name = "PROD_Nötfärs_82.00") {
// enter your earlier given check code here,
// make sure the name above is the same as on the product
}
// Is it a "product" field?
if (form_name.substring(0,4) == "PROD") {
// If so, extract the price from the name
item_price = parseFloat(form_name.substring(form_name.lastIndex Of("_") + 1))
// Get the quantity
item_quantity = parseInt(form_field.value)
// Update the order total
if (item_quantity >= 0) {
order_total += item_quantity * item_price
}
}
}
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#5
Posted 24 November 2009 - 11:25 PM
Still cant get it to work.
Heres the part in the script-section:
<input type="text" name="PROD_Nötfärs1kg_89.00" size="4" value="0" onChange="CalculateTotal(this.form)">
I also tried in the script-part to remove the "PROD" and again with removing "PROD_" but the script dont calculate total or do anything, which leads me to believe ive done something wrong, thus, the script does nothing. If I put // infront of the script-lines, everything goes back to normal.
Heres the part in the script-section:
// Special for Nötfärs
if (form_field.name = "PROD_Nötfärs1kg_89.00") {
if (field.value>0 and field.value<5) {
field.value = 0;
alert("you need to order at least 5 kg Nötfärs");
}
}
Heres the code for the field:<input type="text" name="PROD_Nötfärs1kg_89.00" size="4" value="0" onChange="CalculateTotal(this.form)">
I also tried in the script-part to remove the "PROD" and again with removing "PROD_" but the script dont calculate total or do anything, which leads me to believe ive done something wrong, thus, the script does nothing. If I put // infront of the script-lines, everything goes back to normal.
Edited by Orjan, 24 November 2009 - 11:28 PM.
Please use code-tags around code
#6
Posted 24 November 2009 - 11:27 PM
ah, "field" in the last if-statement shall be "form_field".
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#7
Posted 25 November 2009 - 04:26 AM
Tried it like this...
// Special for Nötfärs
if (form_field.name = "PROD_Nötfärs1kg_89.00") {
if (form_field.value>0 and form_field.value<5) {
form_field.value = 0;
alert("you need to order at least 5 kg Nötfärs");
}
}
----
Still not working :(
// Special for Nötfärs
if (form_field.name = "PROD_Nötfärs1kg_89.00") {
if (form_field.value>0 and form_field.value<5) {
form_field.value = 0;
alert("you need to order at least 5 kg Nötfärs");
}
}
----
Still not working :(
#8
Posted 30 November 2009 - 11:12 PM
Thanks for the help, I really appreciate it, but today I have to get it working.
Heres the entire code with the changes:
---------------------------------------------
Heres the entire code with the changes:
---------------------------------------------
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 4">
<title>Kvills, beställningsformulär</title>
<script language="JavaScript" type="text/javascript">
<!--
/* This script is Copyright (c) Paul McFedries and
Logophilia Limited.
Permission is granted to use this script as long as
this Copyright notice remains in place.*/
function CalculateTotal(frm) {
var order_total = 0
// Run through all the form fields
for (var i=0; i < frm.elements.length; ++i) {
// Get the current field
form_field = frm.elements[i]
// Get the field's name
form_name = form_field.name
// Special for Nötfärs
if (form_field.name = "PROD_Nötfärs1kg_89.00") {
if (form_field.value>0 and form_field.value<5) {
form_field.value = 0;
alert("you need to order at least 5 kg Nötfärs");
}
}
// Is it a "product" field?
if (form_name.substring(0,4) == "PROD") {
// If so, extract the price from the name
item_price = parseFloat(form_name.substring(form_name.lastIndexOf("_") + 1))
// Get the quantity
item_quantity = parseInt(form_field.value)
// Update the order total
if (item_quantity >= 0) {
order_total += item_quantity * item_price
}
}
}
// Display the total rounded to two decimal places
frm.TOTAL.value = round_decimals(order_total, 2)
}
function round_decimals(original_number, decimals) {
var result1 = original_number * Math.pow(10, decimals)
var result2 = Math.round(result1)
var result3 = result2 / Math.pow(10, decimals)
return pad_with_zeros(result3, decimals)
}
function pad_with_zeros(rounded_value, decimal_places) {
// Convert the number to a string
var value_string = rounded_value.toString()
// Locate the decimal point
var decimal_location = value_string.indexOf(".")
// Is there a decimal point?
if (decimal_location == -1) {
// If no, then all decimal places will be padded with 0s
decimal_part_length = 0
// If decimal_places is greater than zero, tack on a decimal point
value_string += decimal_places > 0 ? "." : ""
}
else {
// If yes, then only the extra decimal places will be padded with 0s
decimal_part_length = value_string.length - decimal_location - 1
}
// Calculate the number of decimal places that need to be padded with 0s
var pad_total = decimal_places - decimal_part_length
if (pad_total > 0) {
// Pad the string with 0s
for (var counter = 1; counter <= pad_total; counter++)
value_string += "0"
}
return value_string
}
//-->
</script>
<script type="text/javascript">
function AuthorizeValidation(myform) {
if(myform.bindande.checked == true) {myform.skicka.disabled = false }
if(myform.bindande.checked == false) {myform.skicka.disabled = true }
}
</script>
<script type="text/javascript">
function checkrequired(which) {
var pass=true;
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
}
}
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("The "+shortFieldName+" field is a required field.");
return false;
} else {
return true;
}
}
</script>
</head>
<body text="#ffffff" link="maroon" vlink="maroon" alink="maroon" background="bilder/bestall_brd.jpg">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0" hspace="50">
<form action="/scripts/formmail.dll" method="post" name="myform" onSubmit="return checkrequired(this)" >
<INPUT TYPE=hidden NAME="From" VALUE="info@kvills.se">
<INPUT TYPE=hidden NAME="To" VALUE="info@kvills.se">
<INPUT TYPE=hidden NAME="Subject" VALUE="En ny order">
<INPUT TYPE=hidden NAME="Reply" VALUE="/success.html">
<tr>
<td valign="bottom"><div align="right"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2"><img src="bilder/space4x4.gif" alt="spacing_top" width="4" height="32">* = Obligatoriska fält</font>.<font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td valign="bottom" align="left"><div align="right"></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Namn (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requirednamn" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Adress (*):</font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredadress" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Postnummer (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredpostnummer" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Postadress (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredpostadress" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Telefon (*):</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="requiredtelefon" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">E-mail:</font></div></td>
<td valign="bottom" align="left"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="text" name="E-mail" size="31">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Jag vill beställa (bindande):<img src="bilder/space4x4.gif" alt="space" width="36" height="4" border="0">Antal:</font></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"></div></td>
<td align="left" valign="bottom"><label>
<div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">20 kg Nötlåda, 139 kr/kg</font>
<input type="text" name="PROD_Nötlåda20kg_2780.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</div>
</label></font></td></tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom">
<div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
10 kg Nötlåda, 149 kr/kg
<input type="text" name="PROD_Nötlåda10kg_1490.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</font></div>
<font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><label></label>
</font>
<div align="right"></div><div align="right"></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Nötfärs, 89 kr/kg, <font color="red"><strong><em>OBS!</em> min. 5kg</strong></font>
<input type="text" name="PROD_Nötfärs1kg_89.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</font></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
Kryddkorv, 1 kg låda, 199 kr/kg
<input type="text" name="PROD_Kryddkorv1kg_199.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</font></div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Bok: "Bli säkrare i köket", 99 kr</font>
<input type="text" name="PROD_Boken_99.00" size="4" value="0" onChange="CalculateTotal(this.form)">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Din summa, kr, ca:</font>
<input type="text" NAME=TOTAL size="8" value="0" id="Totalsumma" onFocus="this.form.elements[0].focus()">
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="right"><font color="#000000"></font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font><font color="#000000"></font></div></td>
<td align="left" valign="bottom"><div align="right"><font color="#000000">
</font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">
<label>
<input type="checkbox" name="bindande" id="bindande" onClick="AuthorizeValidation(this.form)">
Jag binder mig</label>
</font><font color="#000000">
<input type="submit" value=" Skicka! " name="skicka" disabled />
</font><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font>
<input type="reset" value=" Nollställ ">
</div>
</form></td>
</tr>
</table>
</div>
</body>
</html>
Edited by WingedPanther, 01 December 2009 - 08:16 AM.
add code tags (the # button)


Sign In
Create Account

Back to top









