Boas ppl,
estou a fazer um tuturial em php.. e encravei num certo passo que me deixou um pouco chateado dado ser tão simples e semelhante ao asp...
Eu instalei o interpretador que esta no site oficial da php.. o 5.0.4...
Por isso não sei qual será o problema disto...
tenho um form.php
<html>
<head>
<title>TEste</title>
</head>
<body>
<form action="verifica.php">
Introduzir nome: <input type=txt name="nome"><br>
<input type=submit value="teste">
</form>
</body>
</html>
e um verifica.php
<html>
<head>
<title>verifica.php</title>
</head>
<body>
<?
echo "O nome introduzido foi:". $nome;
?>
</body>
</html>
o erro resultante é...
"Notice: Undefined variable: nome in c:\inetpub\wwwroot\php\verifica.php on line 7
O nome introduzido foi: "
por que razão ele n está a admitir a variável...?
Agradecia alguma ajuda....
gracias
Cumps
Ps: Estou a fazer este tutorial...
http://www.truquesedicas.com/tutoriais/php/basico/00009a.htm
Se acharem que existem melhores postem ai...
estou a fazer um tuturial em php.. e encravei num certo passo que me deixou um pouco chateado dado ser tão simples e semelhante ao asp...
Eu instalei o interpretador que esta no site oficial da php.. o 5.0.4...
Por isso não sei qual será o problema disto...
tenho um form.php
<html>
<head>
<title>TEste</title>
</head>
<body>
<form action="verifica.php">
Introduzir nome: <input type=txt name="nome"><br>
<input type=submit value="teste">
</form>
</body>
</html>
e um verifica.php
<html>
<head>
<title>verifica.php</title>
</head>
<body>
<?
echo "O nome introduzido foi:". $nome;
?>
</body>
</html>
o erro resultante é...
"Notice: Undefined variable: nome in c:\inetpub\wwwroot\php\verifica.php on line 7
O nome introduzido foi: "
por que razão ele n está a admitir a variável...?
Agradecia alguma ajuda....
gracias
Cumps
Ps: Estou a fazer este tutorial...
http://www.truquesedicas.com/tutoriais/php/basico/00009a.htm
Se acharem que existem melhores postem ai...