<code>
<form action="" method="get">
<table cellspacing="0">
<tbody>
<tr>
<th>Check</th>
<th>Country</th>
<th>Check</th>
</tr>
<?
while($row = mysql_fetch_array($result))
{ ?>
<tr>
<td>
<input type='checkbox' onclick="check()" name='allowed' value='1' <?
$reflex=mysql_query("select distinct * from geocity where isAllowed='1' AND
country='" . $row['Code'] . "'"); $count = mysql_num_rows($reflex); if ($count ==
1{echo 'checked';}else{echo '';} ?>>
</td>
<td><? echo $row['CountryName']; ?></td>
<td>
<input type='checkbox' id="check1" name='countryname' value="<?echo $row['Code'];?>"
<? $reflex = mysql_query("select distinct * from geocity where isAllowed='1' AND
country='" . $row['Code'] . "'"); $count = mysql_num_rows($reflex); if ($count == 1)
{echo 'checked';}else{echo '';} ?>>
</td>
</tr>
<?
};
?>
</tbody>
</table>
<input type="submit" class='button' value="Save">
</form>
</code>
这是我的代码,但是当我提交问题时,出现的问题是在 url“%0A”中发生了这种情况,所以我怎样才能从 url 中删除这个 %0A。网址看起来像这样:
example.com/test.php?allowed=1&countryname=AF%0A