I have an automatic check system that is not working properly
while($linha = mysql_fetch_array($tabela))
{
$nome = $linha['TABLE_NAME'];
?>
<input type="checkbox" name="<?php echo $nome ?>" id="<?php echo $nome ?>" value="<?php echo $nome ?>" <?php if(isset($_POST[$nome])) echo "checked='checked'";?>/> <?php echo $nome ?><br />
<?php
}
The problem is the $nome variable, it have spaces, like 'A B' or '106 South', doing the system not works correctly... I don't know how to solve it, any help will be welcome!