Click to See Complete Forum and Search --> : calling a command with combined strings from drop down box


roblanning
12-06-2003, 11:48 AM
I would like to be able to use drop down boxes and take the values assigned by them to construct a character string to input into the form action code. This doesn't necessarily need to be done even remotely similar to the way i have started it... i assume that the gist of what i am attempting is understood and i'll do it anyway possible.

Example code:

<form method="post" action="<!--#ystore_order id="ITEM_ID_GOES_HERE" -->">

<p>

<select size="1" name="APP">

<option value="21-402">90-93 Acura Integra All</option>

<option value="21-401">94-01 Acura Integra Non VTEC</option>

</select>&nbsp;&nbsp;&nbsp;



<select size="1" name="COLOR">

<option value="b">Blue</option>

<option value="r">Red</option>

<option value="c">Clear</option>

<option value="p">Polished</option>

</select>&nbsp;&nbsp;&nbsp;&nbsp;


<input type="submit" value="Order">

</p>

</form>


So ideally I want the user to be able to select “90-93 Acura Integra All” then “Blue”…..so when that’s the case I need the APP and COLOR to be combined into “ITEM_ID_GOES_HERE” portion of the thing as “21-402b”. I really hope there is some way of doing this….and it seems like it would be really simple.