Forum Moderators: open
<html>
<head>
<title>Advanced Search</title>
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
<script type="text/javascript">
function submitLocationForm()
{
document.getElementById("advanced-search-form").action = "advancedSearch.php";
document.getElementById("advanced-search-form").method = "post";
document.getElementById("advanced-search-form").submit();
}
</script>
</head>
...
<div>
<label for="country">Country:</label>
<select name="country" id="country" onchange="submitLocationForm()">
<option value="Any" selected="selected">Any</option>
<option value="Canada">Canada</option>
<option value="United Kingdom">United Kingdom</option>
<option value="USA">USA</option>
</select>
</div>
...
<html>
<head>
<title>Advanced Search</title>
<script type="text/javascript">
function submitLocationForm()
{
document.getElementById("advanced-search-form").action = "advancedSearch.php";
document.getElementById("advanced-search-form").method = "post";
document.getElementById("advanced-search-form").submit();
}
</script>
</head>
<body>
<div>
<form action="" id="advanced-search-form">
<div>
<label for="country">Country:</label>
<select name="country" id="country" onchange="submitLocationForm()">
<option value="Any" selected="selected">Any</option>
<option value="Canada">Canada</option>
<option value="United Kingdom">United Kingdom</option>
<option value="USA">USA</option>
</select>
</div>
</form>
</div>
</body>
</html>