from what i understand,
$_POST['the_form's_object_name']
means, it return the value from the form's object.
mean, if you have a textbox named 'mytextbox', then
when you submit the form, having the $_POST['mytextbox']
you will have the value of the string you typed in the textfield previously..
hope that helps, if it does not confuse you first.. :p
example,
if you type in 'hello world' in a textbox named 'thetextbox'
then you submit it using $PHP_SELF
if you do this..
echo $_POST['thetextbox'];
it will return 'hello world'
try this for yourself.. 🙂
<?PHP
$from_textbox = $_POST['thetextbox'];
if(isset($_POST['submit'])) {
echo "You type <B>$from_textbox</B> in the textbox";
}
echo "<form name='form1' method='post' action='$PHP_SELF'>";
echo "<input type=text name=thetextbox size=25 maxlength=25>";
echo "<input type=submit name=submit value=Go!>";
echo "</form>";
echo "<BR>";
?>
-jassh