我是这样写动态选择国家城市的代码,在Mozila、Chrome、Opera、Safari和Internet Explorer 9上运行良好,但是在Internet Explorer 8及更早的版本上动态选择国家城市代码就不行了。
<form method=post id="formname" name="formname" action=eaccountdb.php
enctype="multipart/form-data" onsubmit="return Validate();">
<table class="style2">
<tr>
<td>
<table align="left" width="100%">
<tr>
<td align="left">
<label for="country">Country*</label>
<?php
$country = $_GET['country'];
if ($country == null)
{
$data = mysql_query("select * from country where countryname !='$country'");
echo "
<select name='country' style='width:150px' id='country'
onchange='show_country(this.value);'>
<option>Select Country</option>";
while ($info = mysql_fetch_array($data))
{
echo "<option>". $info['countryname']."</option>" ;
}
echo "</select>";
}
...