Im trying to pass the values of two drop downs to a hidden field which already holds the item name (ItemDesc) of 'shirt' so that if a user picks 'red' and 'large' the ItemDesc value becomes 'shirt - red/large'. The question is can this be done in this single page or do I need a secondary page to process the vars and pass it? Ideally I would like to do it on this single page and just pass the 'ItemDesc' var with all three vars .
<form name="form1" method="post" action="process.php">
<select name="varColor">
<option value="red">red</option>
<option value="blue">blue</option>
<option value="green">green</option>
</select>
<select name="varSize">
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
</select>
<br>
<input name="ItemDesc" type="hidden" value="shirt">
</form>
Thanks
<form name="form1" method="post" action="process.php">
<select name="varColor">
<option value="red">red</option>
<option value="blue">blue</option>
<option value="green">green</option>
</select>
<select name="varSize">
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
</select>
<br>
<input name="ItemDesc" type="hidden" value="shirt">
</form>
Thanks