Re: Re: Parsing of forms

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

 



Hello,

Here's another quick solution that shouldn't add much overhead:

// get input 
$qry = 'toppings=sprinkles&toppings=nuts&toppings=fudge&toppings=caramel&toppings=strawberries';
//$qry = $_SERVER['QUERY_STRING'];

// parser input
$qry = str_replace('&toppings=','&toppings[]=',$qry);
parse_str($qry,$get);

print_r($get);


__
Raymond Irving
Create Rich Ajax/PHP Web Apps Today!
Raxan PDI - http://raxanpdi.com/



--- On Wed, 5/20/09, Daniele Grillenzoni <daniele@xxxxxxxxxxxxxxxx> wrote:

Yeah, and php://input should be able to handle $_POST, but custom 
functions ftl, the idea of having useless overhead for simple stuff like 
this makes me angry.



[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