Date: 06/05/02
- Next message: Austin Gonyou: "Re: [PHP] Retrieving data from a URL in PHP"
- Previous message: Philip Olson: "RE: [PHP] what is the format of the filemtime string"
- In reply to: Joe Pemberton: "[PHP] Finding out how a variable was registered"
- Next in thread: John Taylor-Johnston: "[PHP] Re: Finding out how a variable was registered"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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" <joe <email protected>>
To: "php list" <php-general <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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Austin Gonyou: "Re: [PHP] Retrieving data from a URL in PHP"
- Previous message: Philip Olson: "RE: [PHP] what is the format of the filemtime string"
- In reply to: Joe Pemberton: "[PHP] Finding out how a variable was registered"
- Next in thread: John Taylor-Johnston: "[PHP] Re: Finding out how a variable was registered"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

