PHP Code
<?
$login = '';
if( $txtlogin )
{
if($txtlogin == 'arvind')
{
if ($argc > 0 )
{
$redirect = $argv[0];
}
else
{
$redirect = '';
}
if($redirect != '')
{
print "redirect ";
}
else
{
//print "DSADSADSAD";
session_start();
$login = $txtlogin;
session_register('login');
header("Location : main.html");
// exit;
}
}
}
?>
<head>
<title>Login</title>
</head>
<body>
<form name="frmlogin" method="post" action="<? echo $PHP_SELF ?>">
Login name : <input type="text" name="txtlogin">
Password : <input type="password" name="txtpassword">
<input type="submit" name="btsubmit" value="Login">
</form>
</body>
Warning: Undefined variable: txtlogin in login.php on line 3
Y does this warning appear ? And how can i avoid it from appearing.