Ho prelevato il seguente script da una guida sul php, ma quando lo lancio in locale con EasyPHP mi da comunque il seguente errore:
Notice: Undefined variable: inviato in c:\programmi\easyphp1-8\www\php\prova.php on line 4
questo é il file
prova.php
<html>
<head>
<?php
if ($inviato)
{
echo "Il seguente nome é stato";
echo " immesso: $nm $cg
";
}
?>
</head>
<body>
Digitate un nome e inviate il form:
<form action = "prova.php" method = "post">
<input name = "cg"> cognome
<input name = "nm"> nome
<input type = "submit" name = "inviato">
<input type = "reset">
</form>
</body>
</html>
Grazie per l'attenzione