Hi:
I have a simple form where users will enter their username and get a greeting message returned. The form has a variable name of "username" and its variable is not being passed to be processed by the php. I'm a n00b.
Thanks.
<html>
<head>
<title>Enter your name</title></head>
<body>
<form action = "<?php print $PHP_SELF?>" method="POST">
Please enter your name:<br>
<input type="text" size=26 name="username">
<input type="submit" value="submit" name="submit"
</form>
</body>
</title>
</html>
<?php
function message()
{
print "Welcome to my webpage<br>";
}
?>
<html>
<head>
<title>Input Name</title>
<body>
## This page handles the form input from welcomeusername/index.php
<?php
print "Hello ".$_POST['username'].".<br>\n";
message(); //call the message() function
{
}
?>
</body>
</html>