dhui
08-09-2008, 08:10 PM
Ok this is pretty basic...and I have done this alot but for some reason it isn't working for me now. Here is a simple example of what I am trying to do.
------------test.php-------------
<form name="formtest" method="post" action="doTest.php">
<input type="text" size="50" name="test" />
<input type="submit" name="submit" value="submit" />
</form>
------------doTest.php-----------
<?php
$test = $HTTP_POST_VARS["test"];
echo $test;
?>
I am just trying a simple post vars test getting input from the user with a simple form entry and echoing it out in the "doTest.php". Should work....but for some reason I keep getting blanks in "$HTTP_POST_VARS["test"]". Anyone got an idea on what's wrong? code problem or server problem?
------------test.php-------------
<form name="formtest" method="post" action="doTest.php">
<input type="text" size="50" name="test" />
<input type="submit" name="submit" value="submit" />
</form>
------------doTest.php-----------
<?php
$test = $HTTP_POST_VARS["test"];
echo $test;
?>
I am just trying a simple post vars test getting input from the user with a simple form entry and echoing it out in the "doTest.php". Should work....but for some reason I keep getting blanks in "$HTTP_POST_VARS["test"]". Anyone got an idea on what's wrong? code problem or server problem?
