Object-oriented $_REQUEST?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

I'm looking for implementation of request object
that represent a request that works like this.

$r = new request();
if ($r->method == 'GET')
   $name = $r->GET->get('name');
   $age = $r->GET->get('age');
else if (request.method == 'POST')
   $name = $r->POST->get('name');
   $age = $r->POST->get('age');
...

Handling $_GET, $_POST directly is cumbersome for me
so I tried to make one but I thought it's quite possible that
some better programmer already make one like this.

Thanks in advance.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux