I have checked this forum and I found that many people here have the same problem as mine, that I cannot retrieve the variable content to php script from html form. This is a simple sample I copy from my beginner's book, and it's just don't work in my LAMP:
<html>
<body>
<form action="thisfile.php" method="GET">
<p>Give your name: <input type="text" name="yourname">
<br><input type="submit" name="Submit">
</form>
<?php
print("$yourname\n");
?>
</body>
</html>
very simple isn't it? but the $yourname inside the php tags can just never get the value of the yourname that I type in the text box, it's empty.
I noticed that this seems work in php3 but not php4 right? So how is the correct way to do this? even my php4 begineer book is teaching the wrong thing