Size Determines Price on Static Page
I have a static page that I want to have the price change when someone selects a 3 or 4XL size. I've searched the forums and I found a post that I thought might work, but I couldn't get it worked out. I'm using php/mysql. I've pasted the code I was using and a link to the previous thread.
$_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<p>
<input type="hidden" name="mycart_1_ID_Add" value="146" />
<strong class="Grey_Links"> Size</strong><span class="Grey_Links"><strong>
<hidden name="mycart_1_Size_Add" id="mycart_1_Size_Add" value="Small">
<select name="mycart_1_Price_Add" onchange="document.getElementById('mycart_1_Size_A dd').value = this.options[this.selectedIndex].text">
<option value="18.00">Small</option>
<option value="18.00">Medium</option>
<option value="18.00" selected="selected">Large</option>
<option value="18.00">Extra Large</option>
<option value="18.00">2X Large</option>
<option value="19.00">3X Large</option>
</select>
<br />
<br />
Quantity</strong></span>
<input type="text" name="mycart_1_Quantity_Add" value="1" size="4" >
</p>
<p> </p>
<p>
<input type="image" src="WA_eCart/Images/Pacifica/Btn1_EN_addtocart.gif" border="0" value="Add to Cart" name="mycart_1_ATC" alt="Add to Cart">
</p>
</form>
showthread.php?t=785&page=4