I have a two drop down menus where you can select two different variables, type of fruit and a utensil. I would then like to take those variables and add them to a string for use as an URL. Here's where I am so far...
Any help would be greatly appreciated!PHP Code:<form id="form1" name="form1" action="" method="get">
<strong>Select a fruit:<br /></strong>
<select name="fruitSelection" class="fruit_dd">
<option value="">Select...</option>
<option value="apple">Apple</option>
<option value="banana">Banana</option>
<option value="orange">Orange</option>
</select>
<select name="utensilSelection" class="utensil_dd">
<option value="">Select...</option>
<option value="fork">Fork</option>
<option value="spoon">Spoon</option>
</select>
<input name="Button" type="submit" value="Submit" onClick="submitSelections()"/>
</form>
<script type="text/javascript">
function submitSelections() {
var newURL="http://www.sampleURL.com/index.html"
//How do I add the fruit and utensil to that URL?
}




Reply With Quote
