Re: $_POST issues
| From: | Richard Quadling | Date: | Wed, 01 Dec 2010 16:15:41 +0000 |
| Subject: | Re: $_POST issues | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309792@lists.php.net to get a copy of this message | ||
On 1 December 2010 15:18, Marc Guay <marc.guay@gmail.com> wrote:
>>>> <?php
>>>> var_dump($_POST);
>>>> ?>
>
> Where exactly are you putting this line?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
If a script is ran via a url like ...
http://www.site.com/script.php?var1=val1&var2=val2
then $_GET will contain the result.
The same $_GET would hold the values from a <form method="get">
$_POST is for POST-d data (either via <form method="post"> or cURL/Streams).
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY