Basically, so far, I have two files: index.html and home.php
index.html looks like this:
Code: Select all
<html>
<body>
<form action="home.php" method="post">
Name: <input type="text" name="userName" />
<input type="submit" />
</form>
</body>
</html>
and home.php looks like this:
<html>
<body>
Welcome <?php echo $_POST["userName"]; ?>!
</body>
</html>However, at the moment, the 'home' page just displays "Welcome !"
Can anyone tell me what I'm doing wrong, and what I need to do to get the username to be displayed on the 'home' page, and any subsequent pages?
Thanks in advance!