Re: POST/GET into variables
| From: | Nathan Nobbe | Date: | Mon, 21 Jan 2008 03:30:11 +0000 |
| Subject: | Re: POST/GET into variables | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267741@lists.php.net to get a copy of this message | ||
On Jan 20, 2008 10:15 PM, nihilism machine <nihilismmachine@gmail.com>
wrote:
> im trying to keep this php4 OOP. im just trying to clean the post/gets
> and then make them all into variables with their names being the keys
> to the get/post, and their values as the variables values.
then all you have to do is remove the static keyword from the code i posted
(and clean any syntax errors ;)).
ie: $_POST['someFormInputName'] = "somevalue" ... turns into
> $someFormInputName = "somevalue".
thats what the code i put out there does; did you try it yet?
I am not concerned about cleaning the input as i have a function
> already for that.
then feed it as the callback function to the InputFilter::filterInput()
method and all the converted variables will be cleaned as well.
-nathan