<html> <body> <?php if (isset($_POST['submit'])) { ?> Welcome: <?php echo $_POST['fname']; ?>!<br /> Your password is: <?php echo $_POST['password']; ?> <?php } ?> </body> <html>