I am new to the forums, and i have been using HTMl for quite some time now. I was just wondering, i have a custom pc building form, and as of right now i am using javascript and all the items are stored in the HTML of the BODY tag.
I was wondering if there is a way i can modify the form, and have the pull down items populate from an external database.
eg.
Current
HTML Code:
<table class="cpu_content" width="800" align=center id="table1">
<tr>
<td> </td>
<td></td>
<td><strong>Qty</strong></td>
<td><strong>Total</strong></td>
</tr>
<tr class="lineitem">
<td>CD-ROM Drives:</td>
<td>
<select name="prod_1" class="quoteselect" onchange="updatePrice(1, this.value)">
<option value="Select:0" selected>-- Select --</option>
<option value="Asus:0">--ASUS-- </option>
<option value="Asus52xCD:20.0">Asus 52x CD-ROM Drive ($20.00)</option>
<option value="Asus52XDBL:20.0">Asus 52x CD-ROM Drive (Black) ($20.00)</option>
<option value="LG:0">--LG--</option>
<option value="LG52xCD:20.0">LG 52x CD-ROM Drive ($20.00)</option>
<option value="LG52xCDBL:20.0">LG 52x CD-ROM Drive (Black) ($20.00)</option>
</select>
</td>
<td>
<select name="qty_1" id="qty_1" onchange="calculateSubtotal()">
<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>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</td>
<td>
<input id="st_1" type="text" size="5" class="subtotal" value="0.00" readonly name="T1">
</td>
</tr>
.....More items here....
...Tax/Shipping/Totals will go here....
So my question would be, how could this code be modified to use a dabase to store the items for the pulldown menus, if this is possible?
I am using 1and1.com for hosting, and i belive they support, PHP, CGI, ASP, and the standard HTML.
I am not quite sure which database to use, but i would think that i would use MYSQL, unless there is a better choice?
Anyone have any ideas?
Thanks for reading!