I have a order form page and on submitting it opens a new web page that displays the order totals. Below is my code and most probably wrong but for me it seems logic. Please assist.
Order Form:
[CODE]<td colspan=”1″ height=”120″ align=”left”>
<select style=”margin-left: 60px; background-color: #00FF77;” name=”prod_bed_359″ onchange=”calculateValue(this.form)”>
<option value=”0″>0</option>
<option value=”1″>1</option>
<option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”5″>5</option>
</select> R359</td></tr>
New page I called a unction to print:
Code:
[CODE]function itemsOrdered() {
var beds = document.forms[2].prod_bed_359.value;
document.write(“<pre><strong>DescriptionttQuantitytPrice</strong></pre>”);
document.write(“<pre>Doggie Bedtt” + beds + “</pre>”);
}
This is still basic as I need to get this right before adding the prices and totals which is also extracted from the order page.