oque estou fazendo de errado??
esse é o meu codigo...
<table width="100%" height="84" border="0" cellpadding="0">
<tr>
<td width="29%" height="11" align="center" bgcolor="#BFBFBF"><font color="#0000FF" size="3" face="Verdana, Arial, Helvetica, sans-serif">Selecione a tabela:</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="71%" bgcolor="#BFBFBF"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<? echo $tab;?>
<select name="tabela" onChange="location.href='http://www.fazenda/pesquisa.php?tab='$tabela''">
<option>Escolha uma tabela
<?
$pesquisa_tabela = mysql_list_tables(compfaz);
while($array = mysql_fetch_row($pesquisa_tabela)){
echo '<option value="'.$array[0].'">'.$array[0].'</option>';
}
?>
</select></font></td>
</tr>
<tr>
<td height="13" colspan="2" align="center" bgcolor="#BFBFBF">
<?
if ($tab != ""){
$pesquisa_de_campos = mysql_query("desc $tab", $db);
while ($campos = mysql_fetch_row($pesquisa_de_campos)) {
echo'<input name="programass[]" type="checkbox" id="itens" value="'.$campos[0].'">';
echo '<option value="">'.$campos[0].'</option>';
}
} else {
echo 'variável não apresenta valor';
}
?>
</td>
</tr>
</table>
acho que o erro está nessa linha, mas naum fazê...
<select name="tabela" onChange="location.href='http://www.fazenda/pesquisa.php?tab='$tabela''">
se alguem souber....Valew