Has something changed with PHP 4.2.0? I'm trying to do some very basic html form input stuff, but it's just not working. I thought maybe I was making a coding mistake so I found this piece of code on the net:
<?php
if ($submit == "click"){
echo "Hello, $UserName";
}
else{
echo '
<body>
<form method="post" action="test.php">
Enter Your Name
<input type="text" name="UserName"></input><br>
<input type="submit" name="submit" value="click"></input>
</form>
</body>
';
}
?>
but the only problem is the if($submit == "click") is never true. On the page I'm working on I have something pretty similar, except I have if($submit) .. but once again, it never registers as true. Has something changed with PHP 4.2 in handling this? I was able to do this with quite ease back in the 3.x days. I'm running Apache 2.0 on windows xp if that's of any help. Thanks.