yeah, Dan's code fails as well. here's my code:
---START SNIP SNIP---
<?php
print('POST<pre>');
print_r($_POST);
print('</pre><br>GET<pre>');
print_r($_GET);
print('</pre><br>REQUEST<pre>');
print_r($_REQUEST);
print('</pre>');
?>
<hr>
<h3>POST FORM</h3>
<form action="test.php" method="POST">
field one:
<input type="text" name="f_1">
<br>
field two:
<input type="text" name="f_2">
<p><br>
<input name="Submit" type="submit" value="Post">
<input name="Cancel" type="reset" id="Cancel" value="Cancel">
</form>
<p>
<hr>
<h3>GET FORM</h3>
<form action="test.php" method="GET">
field one:
<input type="text" name="f_1">
<br>
field two:
<input type="text" name="f_2">
<p><br>
<input name="Submit" type="submit" value="Get">
<input name="Cancel" type="reset" id="Cancel" value="Cancel">
</form>
---END SNIP SNIP---
--
Andy
On Wed, Aug 04, 2004 at 07:56:52AM -0700, Dan Phiffer wrote:
> Craig Donnelly wrote:
> > Show the code you are using...
>
> I'm having the same problem. Here is a test script that prints Array()
> regardless of what you enter and submit with the form:
>
> -- test.php --
> <?php print_r($_POST); ?>
> <form method="post" action="test.php">
> <input type="text" name="foo"/>
> <input type="submit"/>
> </form>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php