Re: Array from one form to other?

From: Date: Sun, 20 Feb 2011 02:57:07 +0000
Subject: Re: Array from one form to other?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-311450@lists.php.net to get a copy of this message
On Sat, Feb 19, 2011 at 21:50, Yogesh <yogeshp08@gmail.com> wrote: > POST Use cURL, look into curl_setopt(), and add square brackets (and optional key names) to your array. A quick start: <?php $ch = curl_init(); curl_setopt(CURLOPT_POST,1); curl_setopt(CURLOPT_POSTFIELDS,'firstArr[]=apple&firstArr[]=orange&firstArr[]=banana&secondArr[one]=foo&secondArr[two]=bar'); // etc. ?> -- </Daniel P. Brown> Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/

« previous php.general (#311450) next »