<html> <head> </head> <body> <?php $username = $_GET['txtUserName']; $password = $_GET['txtPassword']; echo "<p>UserName : ".$username."</p>"; echo "<p>Password : ".$password."</p>"; ?> </body> </html>
Standard input is empty
<html> <head> </head> <body> <p>UserName : </p><p>Password : </p> </body> </html>
PHP Notice: Undefined index: txtUserName in /home/aRBXTy/prog.php on line 6 PHP Notice: Undefined index: txtPassword in /home/aRBXTy/prog.php on line 7