It's staring you right in the face! Your form was set to POST, and your variable was set to $_REQUEST. Use $_POST to get the variable. But if you wanted to use $_REQUEST, set the form to GET. Here (fixed up some of the XHTML for ya, too, also got rid of the comments beacuse I knew you put them there for this board):HTML File:
<html> <head> <title>What’s your name?</title> </head> <body> <h1>What’s your name?</h1> <h3>Writing a form for user input</h3> <form method="post" action="/hiUser.php"> Please type your name: <input type="text" name="userName" value="" /><br /> <input type="submit" /> </form> </body></html>
PHP File:
<html> <head> <title>hiUser.php</title> </head> <body> <h1>Hi User</h1> <h3>PHP program that receives a value from "whatsName"</h3> <?php $userName=$_POST['userName']; echo("<h3>Hi there, ".$userName."!</h3>"); ?> </body></html>