<html> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> Name: <input type="text" name="fname"> <br> Password: <input type="text" name="pname"> <br> <input type="submit"> </form> <?php $name = @$_REQUEST['fname']; $nameq = @$_REQUEST['pname']; echo $name.$nameq; ?> </body> </html>