Estou iniciando este tópico para que postem dúvidas sobre as velhas mensagens de erro que recebemos da execução de alguns scripts em PHP.
Aí vai a primeira:
Instalei o Apache 1.3.33 + phpnuke br 7.X algums scripts rodam bem. Mas quando rodo em uma outra máquina com o Apache 2.0.52 + php 4.3.9 tenho algumas mensagens de erro que aparentemente não estão errados. Por exemplo:
Com o script abaixo:
<?
$matricula = $_POST ['txmatricula'] ;
$nome = $_POST['txnome'] ;
$matricula = $matricula ;
$nome = $nome ;
?>
<table>
<form name="form1" method="post" action="validacadastro.php">
<table >
<tr>
<td>
<div>Matrícula:</div>
</td>
<td>
<input type="text" name="txmatricula" size="10" maxlength="10" value="<? echo $matricula ; ?>">
</td>
</tr>
<tr>
<td><div>Nome:</div></td>
<td>
<input type="text" name="txnome" maxlength="50" size="40" value="<? echo $nome ; ?>">
</td>
</tr>
<tr>
<input type="submit" name="Submit" value="Cadastrar">
<input type="reset" name="Submit2" value="Limpar">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
Tenho a seguinte mensagem de erro:
Undefined index: txmatricula in arquivo.php on line ...
Notice: Undefined variable: nome in arquivo.php on line ...
Basicamente as dúvidas são quanto às mensagens de "Undefinide variable" e "Undefinide index" resultantes do script.
Pela atenção, obrigado.

Help















