Re: [PHP] Array from one form to other?

2011-02-20 Thread Tamara Temple
On Feb 19, 2011, at 6:38 PM, Yogesh wrote: I have two forms. One form helps read an input file into an array. And the other form needs this array as an input. I am able to read the input file into an array, but how do I pass it over to the other form. Both forms have PHP file as 'action'.

Re: [PHP] Array from one form to other?

2011-02-20 Thread Yogesh
Hi Tamara, I don't entirely understand this; Dan Brown gave you solution to use curl to pass the array to the second form (do you mean script here?). That would certainly work, but I'm wondering if it wouldn't be more secure to spool out the array to a file from the first script after it has

Re: [PHP] Array from one form to other?

2011-02-20 Thread Tamara Temple
On Feb 20, 2011, at 10:51 AM, Yogesh wrote: I don't entirely understand this; Dan Brown gave you solution to use curl to pass the array to the second form (do you mean script here?). That would certainly work, but I'm wondering if it wouldn't be more secure to spool out the array to a

Re: [PHP] Array from one form to other?

2011-02-19 Thread Daniel Brown
On Sat, Feb 19, 2011 at 19:38, Yogesh yogesh...@gmail.com wrote: Hello, I have two forms. One form helps read an input file into an array. And the other form needs this array as an input. I am able to read the input file into an array, but how do I pass it over to the other form. Both

Re: [PHP] Array from one form to other?

2011-02-19 Thread Yogesh
POST On Sat, Feb 19, 2011 at 9:44 PM, Daniel Brown danbr...@php.net wrote: On Sat, Feb 19, 2011 at 19:38, Yogesh yogesh...@gmail.com wrote: Hello, I have two forms. One form helps read an input file into an array. And the other form needs this array as an input. I am able to read

Re: [PHP] Array from one form to other?

2011-02-19 Thread Daniel Brown
On Sat, Feb 19, 2011 at 21:50, Yogesh yogesh...@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);