Re: HTTP_Clients and Files - Part 2

From: Date: Wed, 17 Nov 2004 21:09:25 +0000
Subject: Re: HTTP_Clients and Files - Part 2
References: 1 2 3 4 5 6  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15610@lists.php.net to get a copy of this message
Hi, Andrew Nagy wrote:
Anyway, my new question is how do i send an array of data in a post or get method? For example, if the form that I am submitting to has a set of checkboxes that are all the same name. $client->post($url, array('sessionid' => 'abc123', 'options' => array('1', '3', '7')));
That's right, but do the following before a post: $client->setRequestParameter('useBrackets', false); This will prevent HTTP_Request from adding brackets to names of the array parameters.

« previous php.pear.general (#15610) next »