Re: Re: Parsing of forms

From: Date: Wed, 20 May 2009 13:10:52 +0000
Subject: Re: Re: Parsing of forms
Groups: php.general 
Request: Send a blank email to php-general+get-292820@lists.php.net to get a copy of this message
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@b2informatica.it> 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.

« previous php.general (#292820) next »