Hi all,
I'm trying to execute an ultra simple code and the first time I run it I get the following message:
Notice: Undefined index: login in C:\Program Files\Abyss Web Server\htdocs\5.php on line 24
After that it runs just fine...
The code is:
<HTML>
<BODY>
<FORM method=POST action="5.php">
<input type="hidden" name="action" value="true">
<input type="text" name="login" value="Login" size="10">
<p>
<input type="password" name="password" size="10"><br>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</FORM>
</BODY>
</HTML>
<?
$rlogin="John";
$rpassword="Smith";
$ilogin=$_POST["login"];
if ($ilogin == $rlogin ) {
echo("bravo!");
}
?>
Where is the problem?
Thanks for your support!
Regards