Use $HTTP_POST_VARS['var'] instead of $var and you will know it comes from
post. Or $HTTP_GET_VARS['var'] if you want it from GET (the URL).

Or use the superglobals like someone else mentioned if you have the latest
PHP version.

---John Holmes...

----- Original Message -----
From: "Joe Pemberton" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 2:45 PM
Subject: [PHP] Finding out how a variable was registered


Is there a function call to figure out how a variable was registered?  I am
writing a page that handles a form and I need to know whether or not a
variable was created using the GET or POST method (I don't want the user to
be able to to 'foo.php?var=value' and mess with the results)
- - Joe

[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to