I am using front page, the form I have is javascript.
Here is the most important part of the script. The values that the person selects is what I want transferred in a simple format. Such as if they clicked on 4' x 4', 1 x 2 window, and no accessories. The display that I am after would look something like this:
SIZE: 4 x 4
Window: 1 x 2
Accessories: none
I took some tags out so that it would show the html language instead of the function, so I know there are some things missing, but you can get the basic idea.
Thank you for any help!
SCRIPT LANGUAGE="JavaScript"
!--
function AddItUp(form) {
var item, SIZE, WINDOW, ACCESSORIES;
// Get the value of the item that's selected in the first list
item = form.SIZE.selectedIndex;
SIZEValue = eval(form.SIZE.options[item].value)
// Get the value of the item that's selected in the second list
item = form.WINDOW.selectedIndex;
WINDOWValue = eval(form.WINDOW.options[item].value)
// Get the value of the item that's selected in the third list
item = form.ACCESSORIES.selectedIndex;
ACCESSORIESValue = eval(form.ACCESSORIES.options[item].value)
// Add up the value and display the total
form.total.value = SIZEValue + WINDOWValue + ACCESSORIESValue
}
//-->
SCRIPT
HEAD
BODY MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 BGCOLOR=#FFFFFF>
A NAME="top"></A>
SCRIPT LANGUAGE="JavaScript">
!--
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer == 2) {
document.open();
document.write("<FONT COLOR=#000000><B>
//-->
SCRIPT>
DIV STYLE="margin-left: 5px; font-family: Arial, Verdana, Helvetica, Geneva, 'MS Sans Serif'">
CENTER><TABLE WIDTH=610 CELLSPACING=0 CELLPADDING=0><TR><TD><IMG SRC="/Graphics/spacer.gif" HEIGHT=1 WIDTH=610><BR>
P>
CENTER>
FORM>
TABLE BORDER=0 CELLPADDING=2>
TR>
TD ALIGN=RIGHT>SIZE:</TD>
TD>
SELECT NAME="SIZE">
<OPTION VALUE=2400>4' X 4'
<OPTION VALUE=3550>4' X 6'
<OPTION VALUE=4700>6' X 6'
SELECT>
TD>
TR>
TR>
TD ALIGN=RIGHT>WINDOW:</TD>
TD>
SELECT NAME="WINDOW">
OPTION VALUE=0>1 X 2 door window
<OPTION VALUE=56>Exchange for 3 x 3 window
<OPTION VALUE=280>additional 3 x 3 window
SELECT>
TD>
TR>
TR>
TD ALIGN=RIGHT>ACCESSORIES:</TD>
TD>
SELECT NAME="ACCESSORIES">
<OPTION VALUE=1125>Handicap door and ramp
<OPTION VALUE=350>additional vent system
<OPTION VALUE=85>light
SELECT>
TD>
TR>
TR>
TD ALIGN=RIGHT>Total:</TD>
TD>
INPUT
TYPE=TEXT
NAME=total
SIZE=7
TD>
TR>
TR>
TD ALIGN=CENTER COLSPAN=2>
INPUT
TYPE=BUTTON
NAME="cmdCalc"
VALUE="Calculate"
onClick=AddItUp(this.form)>
TD>
TR>
TABLE>
FORM>
CENTER>
HR>
address>
address>
TD></TR></TABLE>
BODY>
