Sono un principiante e non riesco a trovare l'errore di questo script esemplificativo:
<?php
if ($azione=="ESEGUI RICARICA")
{
echo("
");
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body bgcolor="#ffffd5" text="#000000">
<h2>Ricarica credito utente</h2>
<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
Numero Carta di Credito: <input type="text" name="carta_credito" size="16" maxlength="16">
<input type="submit" value="esegui_ricarica">
<input type="hidden" name="azione" value="ESEGUI RICARICA">
</form>
Menu Funzioni Utente
</center>
</body>
</HTML>
mi viene dato il seguente errore: Notice: Undefined variable: azione in c:\programmi\easyphp1-7\www\crea_calendario.php on line 5