I have a select box on a page (that I will give the alias of page.asp) that calls a function:
<select name="make" onchange="return submitValues();">
var Make = document.parts.make.value;
window.location = "page.asp?make="+Make;
When I choose a value from the select box, the function sends the user to page.asp?make=ford. Now, the select box is on page.asp so this function simply sends the user to page.asp again but with some URL variables this time. I then take the URL variables and use them to determine which option of the select box make should be "selected."
The problem occurs when I select a new option from the select box. The function executes and sends me to page.asp?make=undefined. For some reason, the function correctly grabs the option value of the make select box the first time, but on the second time it cannot seem to pull the right value; it simply gives the value as "undefined."