I am stumped. I can't pass variables through forms. $variable has no value using this code (that is after i put something in and press submit.)
<?php print $variable; ?> <FORM ACTION="<?php print $PHP_SELF; ?>" METHOD="post"> <INPUT TYPE="Text" NAME="variable"> <INPUT TYPE="SUBMIT" VALUE="Submit"> </FORM>
What version of PHP are you using? Latest versions have the PHP system settting of register_globals switched off which means you need to use:
echo $_POST["variable"];
Have a look at http://www.php.net/manual/en/security.registerglobals.php
Good Luck.
You don't need:
ACTION="<?php print $PHP_SELF; ?>"
If the form has no action, then it submits the form to the current file, which means you don't need that.