Posted by Alvaro G. Vicario on 11/21/05 23:24
*** Greg Scharlemann escribió/wrote (20 Nov 2005 15:15:43 -0800):
> Does $_SERVER['QUERY_STRING'] not return the query string when using
> the post method of a form?
There're only be a QUERY_STRING if you append parameters manually to the
URL:
<form action="script.php?foo=1" method="post">
<input name="bar" value="2">
</form>
echo $_GET['foo']; // prints 1
echo $_POST['bar']; // prints 2
--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--
[Back to original message]
|