Hi there.
I have a simple javascript code that shows the price of the gameservers i host. At the moment the private servers are set to take off so much off of the original price. However what i would like it to do is just load a seperate list of prices as there is no set ammount to reduce the price by. The following code is what i have at the moment
</script>
<form name="form1" method="post" action="purchase.php">
<div align="center">
<table width="135" border="0">
<tr>
<td width="39">Type:</td>
<td width="351"><select name="type" id="type" onchange="changeprice(price_for_type[document.form1.type.options.selectedIndex]-0, price_for_players[document.form1.slots.options.selectedIndex]-0);">
<option selected>Public</option>
<option>Private</option>
</select></td>
</tr>
<tr>
<td>Slots:</td>
<td><select name="slots" id="slots" onchange="changeprice(price_for_type[document.form1.type.options.selectedIndex]-0, price_for_players[document.form1.slots.options.selectedIndex]-0);">
<option selected>-------</option>
<option>08 Man</option>
<option>12 Man</option>
<option>16 Man</option>
<option>20 Man</option>
<option>24 Man</option>
<option>28 Man</option>
<option>32 Man</option>
</select></td>
</tr>
<tr>
<td>Price:</td>
<td>$
<input name="textfield" type="text" size="6"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Buy"></td>
</tr>
</table>
<script>
</script>
<form name="form1" method="post" action="purchase.php">
<div align="center">
<table width="135" border="0">
<tr>
<td width="39">Type:</td>
<td width="351"><select name="type" id="type" onchange="changeprice(price_for_type[document.form1.type.options.selectedIndex]-0, price_for_players[document.form1.slots.options.selectedIndex]-0);">
<option selected>Public</option>
<option>Private</option>
</select></td>
</tr>
<tr>
<td>Slots:</td>
<td><select name="slots" id="slots" onchange="changeprice(price_for_type[document.form1.type.options.selectedIndex]-0, price_for_players[document.form1.slots.options.selectedIndex]-0);">
<option selected>-------</option>
<option>08 Man</option>
<option>12 Man</option>
<option>16 Man</option>
<option>20 Man</option>
<option>24 Man</option>
<option>28 Man</option>
<option>32 Man</option>
</select></td>
</tr>
<tr>
<td>Price:</td>
<td>$
<input name="textfield" type="text" size="6"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Buy"></td>
</tr>
</table>
<script>
</script>
<p align="center">All servers have a one time $15.00 setup fee except for the 32 man servers which have free setup. Additional discounts for individuals or clans with two or more servers.</p>
<p align="center">Every Game Server includes FTP access to upload game files and mods, Xtreme CP so you can manage your server from the website, Free support and if requested a free TeamSpeak Server.</p>
<p align="center">If you have any more questions then please e-mail [email]orders@hosting-4you.com[/email] </p>
</div>
</form>
</td>
</tr>
</table>
thanks to anyone that can help.