Hello, is there anyone who can help me please with a problem i’ve got with the web site ive just taken over at work? I am solely reponsible for the site and can do the basics and little else. We currently have one order form on our site: [url]www.lawreports.co.uk/orderform2002.htm
My problem is that this page has not been working since last year, as far as i know due to the fact it hasnt got the coding below inserted anywhere. Would anyone be able to tell me why its not working once ive inserted it onto the page and whereabouts I should insert it? Im working with DW 4. I think theres something wrong with the return function.
Thanks to anyone who takes the time to answer this!! Karen
<script language=”JavaScript”>
<!– Hide script function formCheck()
{
totalAmount = 0;
prodSelected = false;
for (var i=0;i<document.payform.length;i++) {
if (document.payform.elements[i].checked){
totalAmount += eval(document.payform.elements[i].value);
prodSelected = true;
}
}
}
if (prodSelected) {
document.payform.payment_amount.value=totalAmount;
return true;
} else {
alert(‘Please select a product’);
return false;
}
}
// –>
</script>