Confirmable Order Form2 | JavaScriptSource

Confirmable Order Form2

JavaScriptSource Staff Dec 31, 1999
The JavaScript Source: Forms: Confirmable Order Form "; orderData += " Item Description Cost "; grandTotal = 0; for (var i = 0; i < dataCount; i++) { valNum[i] = string.substring(0,string.indexOf("=")); string = string.substring(string.indexOf("=")+1,string.length); if (i == dataCount-1) valData[i] = string; else valData[i] = string.substring(0,string.indexOf("&")); ampd = valData[i].indexOf("&"); pipe = valData[i].indexOf("-"); star = valData[i].indexOf("*"); line = valData[i].indexOf("$"); itemnum = string.substring(0,pipe); itemdsc = string.substring(pipe+1,star); itemcst = string.substring(star+1,line); string = string.substring(ampd+1,string.length); orderData += " "; orderData += ""; orderData += ""; orderData += ""; orderData += " " + itemnum + " "; orderData += " " + itemdsc + " "; orderData += " " + itemcst + " "; orderData += " "; grandTotal += parseInt(itemcst); } orderData += " "; orderData += " Total " + grandTotal + ".00 "; orderData += " "; orderData += " "; orderData += " or Go Back "; orderData += " "; orderData += ""; orderData += " "; document.write(orderData); } function openThanks() { window.open("confirm-order-thanks.html"); } // -->

 



Home } Forms } Confirmable Order Form



Here is where you confirm your order. The order is then emailed to the webmaster using freedback.com's free form processing cgi-script. This demo will mail the form to you if you enter your email address below -- If you actually put this script on your site can you can make the 'to' address a hidden field for your email address.
Email form to:

Leave a Response

(0 comments)