Re: Detecting If A Variable Arrives At A Page From A Get Or A Post...
| From: | Burhan Khalid | Date: | Fri, 25 Jul 2003 17:52:37 +0000 |
| Subject: | Re: Detecting If A Variable Arrives At A Page From A Get Or A Post... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156913@lists.php.net to get a copy of this message | ||
On Thursday, July 24, 2003, 10:47:08 PM, anachronism wrote:
amc> Quick question...
amc> I was wondering if there is a way to detect if any given variable came in to
amc> a page via post, or a get from a form.
if ($_POST['varname']) { came from POST }
if ($_GET['varname']) { came from GET }
etc.
Unless you already knew that and wanted something specific.
--
Regards,
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com