How do i get the value from a combobox to view certain xml files???
<p>Competitions<br>
<select name="select">
<option value="Option 1" selected>Butlins Mineworkers</option>
<option value="Option 2">West Midlands Area</option>
<option value="Option 3">Wales Area</option>
<option value="Option 4">Scotland Areas</option>
</select>
</p>
<?php
$xml = simplexml_load_file('xmltestdata.xml');
$search = ****above value***
$results = $xml->xpath("//result[compName='$search']");
echo "<u><b>$search</b></u><br /><br />";
foreach ($results as $res) {
echo "$res->bandName $res->year $res->position <br>";
}
?>
Sorry if im being thick but i a newbie :-p
Many Thanks in advance :-)