I'm new to web development, and I can't figure out how to take a value from a drop-down list and use that value in a hyperlink. I've set up my values in the drop-down field, but can't seem to get my hyperlink to read the value of the selected option. Here's my code:
Drop-down list:
<form name="baseball_size">
<select name="baseball" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Size...</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-S&CARELLOCODE=PCMI">Small</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-M&CARELLOCODE=PCMI">Medium</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-L&CARELLOCODE=PCMI">Large</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-XL&CARELLOCODE=PCMI">XLarge</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-XXL&CARELLOCODE=PCMI">XXLarge</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-XXXL&CARELLOCODE=PCMI">XXXLarge</option>
</select>
</form>
And here's the code for the hyperlink:
<a href="$baseball" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','../images/cart6-over.gif',1)" target="CARTLIST"><img name="Image9" border="0" src="../images/cart6.gif" width="78" height="64"></a>
I'm guessing that there's something very simple that I'm missing here. I'm trying to teach myself, and now I'm stuck.
Drop-down list:
<form name="baseball_size">
<select name="baseball" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Size...</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-S&CARELLOCODE=PCMI">Small</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-M&CARELLOCODE=PCMI">Medium</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-L&CARELLOCODE=PCMI">Large</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-XL&CARELLOCODE=PCMI">XLarge</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-XXL&CARELLOCODE=PCMI">XXLarge</option>
<option value="/scripts/Carello/Carello.dll?VBEXE=e:/inetpub/scripts/Carello/Add.exe&ITEMNUM=42-EMB-XXXL&CARELLOCODE=PCMI">XXXLarge</option>
</select>
</form>
And here's the code for the hyperlink:
<a href="$baseball" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','../images/cart6-over.gif',1)" target="CARTLIST"><img name="Image9" border="0" src="../images/cart6.gif" width="78" height="64"></a>
I'm guessing that there's something very simple that I'm missing here. I'm trying to teach myself, and now I'm stuck.