Re: Array from one form to other?

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

 



On Sat, Feb 19, 2011 at 21:50, Yogesh <yogeshp08@xxxxxxxxx> 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/

-- 
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