veja como estou tentando:
<?phpsession_start();if(isset($_POST['gravar']))header("Location: ok.php");include("configuracao/conexao.php");if($_SESSION["admin"]==""){$login = "login";$senha = "senha";$email = "email";$nome = "nome";if(isset($_POST['gravar'])){// Somente números no campo IDif (!is_numeric($_POST['$login'])){$erro++;$mensagem = "<div class=\"erro\">O Campo \"ID\" deve conter apenas números!</div>";}// Validando o campo senhaif(empty($_POST['$senha'])){$erro++;$erro_senha = "<span class=\"erro\">O campo senha não pode ficar em branco.</span>\r";}// Validando o campo nomeif(empty($_POST['$nome'])){$erro++;$erro_nome = "<span class=\"erro\">O Campo \"Nome\" não pode ficar em branco!.</span>\r";}// Validando o campo e-mailif(empty($_POST['$email'])){$erro++;$erro_email = "<span class=\"erro\">O Campo \"email\" não pode ficar em branco!</span>\r";}if ($erro == 0) { $sql = "INSERT INTO table_cliente (id, login, senha) VALUES ('','$login','$senha')"; $sql2 = "INSERT INTO newsletter_emails (id, email, nome, data_reg, categoria, status, md5) VALUES ('','$email','$nome','2008-07-21 19:27:26','Amigos','yes','')"; mysql_query($sql); mysql_query($sql2);}}}?><meta http-equiv="Content-Language" content="pt-br"><form action="nova.php" method="post"> <div align="center"> <center> <IMG src="images/painel.jpg" width=900 height=120 > <br><b><strong>Área de Ferrmentas</b></strong><br> Cadastrando um novo ID para acesso<br> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100" height="106"> <tr> <td width="100%" height="4"><b><font face="Arial" size="1">Seu ID:</font></b></td> </tr> <tr> <td width="100%" height="15"><font face="Arial"> <input name="login" size="45" style="font-family: Arial; font-size: 8 pt; color: #000000; font-weight: bold; border: 3px double #EBEBEB; padding: -4"></font><?php echo $mensagem; ?></td> </tr> <tr> <td width="100%" height="12"><b><font face="Arial" size="1">Senha:</font></b></td> </tr> <tr> <td width="100%" height="20"><font face="Arial"> <input name="senha" size="45" style="font-family: Arial; font-size: 8 pt; color: #FF0000; font-weight: bold; border: 3px double #EBEBEB; padding: -4" type="password"></font><?php echo $erro_senha; ?></td> </tr> <tr> <td width="100%" height="19"><hr color="#FF0000" size="1"></td> </tr> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100" height="106"> <tr> <td width="100%" height="4"><b><font face="Arial" size="1">Seu E-mail:</font></b><?php echo $erro_email; ?></td> </tr> <tr> <td width="100%" height="15"><font face="Arial"> <input name="email" size="45" style="font-family: Arial; font-size: 8 pt; color: #000000; font-weight: bold; border: 3px double #EBEBEB; padding: -4"></font></td> </tr> <tr> <td width="100%" height="19"><hr color="#FF0000" size="1"></td> </tr> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100" height="106"> <tr> <td width="100%" height="4"><b><font face="Arial" size="1">Seu Nome:</font></b></td> </tr> <tr> <td width="100%" height="15"><font face="Arial"> <input name="nome" size="45" style="font-family: Arial; font-size: 8 pt; color: #000000; font-weight: bold; border: 3px double #EBEBEB; padding: -4"></font><?php echo $erro_nome; ?></td> </tr> <tr> <tr> <td width="100%" height="24"> <p align="center"> <input type="submit" name="gravar" class="button" value="Cadastrar usuário" style="font-family: ARIAL; font-size: 8 pt; font-weight: bold; border: 3px double #FF0000; padding: -4; background-color: #FFFFFF"></td> </tr> </table> </center> </div></form><?}}include "infor.php";?>
mas o erro informado é este:
Parse error: syntax error, unexpected $end in /home/grupoinv/public_html/ferr/painel/nova.php on line 105
Não é possível fazer assim?
Edição feita por: Maykel Esser, 27/11/2009, 16:58.
Remoção de estilos e inserção de codebox