[PHP] multipart/form-data and Array POST

2004-03-13 Thread Andy Lewis
Hello All, I'm having a problem including an array in a hidden field for file upload. My first question is, can this be done? Can I actually include an array in a hidden field on a POSTed PHP upload field? If so do I have to encode the array. I use array's on my site and am aware that I have

Re: [PHP] multipart/form-data and Array POST

2004-03-13 Thread Brian V Bonini
On Sat, 2004-03-13 at 10:40, Andy Lewis wrote: form action=?=$PHP_SELF? method=POST name=sendit enctype=multipart/form-data input name=?= $upload_file_name; ? type=file size=60 input type=submit value=Upload ? echo input type=\hidden name=\my_array\ value=\ .

Re: [PHP] multipart/form-data and Array POST

2004-03-13 Thread Raditha Dissanayake
Andy Lewis wrote: Hello All, I'm having a problem including an array in a hidden field for file upload. My first question is, can this be done? Can I actually include an array in a hidden field on a POSTed PHP upload field? can be done If so do I have to encode the array. I use array's on my

RE: [PHP] multipart/form-data and Array POST

2004-03-13 Thread Andy Lewis
I'm trying to pass an array of values. Then retrieve it on the next page. -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED] Sent: Saturday, March 13, 2004 9:58 AM To: Andy Lewis Cc: PHP Lists Subject: Re: [PHP] multipart/form-data and Array POST On Sat, 2004-03-13 at 10

RE: [PHP] multipart/form-data and Array POST

2004-03-13 Thread Andy Lewis
I am running: $my_array = unserialize(base64_decode($my_array)); on the array once it's POSTed. -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: Saturday, March 13, 2004 10:18 AM To: Andy Lewis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] multipart/form-data

RE: [PHP] multipart/form-data and Array POST

2004-03-13 Thread Andy Lewis
register_globals = On -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: Saturday, March 13, 2004 10:18 AM To: Andy Lewis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] multipart/form-data and Array POST Andy Lewis wrote: Hello All, I'm having a problem

Re: [PHP] multipart/form-data and Array POST

2004-03-13 Thread Raditha Dissanayake
My Code: form action=?=$PHP_SELF? method=POST name=sendit enctype=multipart/form-data input name=?= $upload_file_name; ? type=file size=60 input type=submit value=Upload ? echo input type=\hidden name=\my_array\ value=\ . base64_encode(serialize($my_array)) . \; ? /form The code does

[PHP] PHP multipart form data

2002-08-08 Thread Mike Dunlop
hello, i have php 4.2.2 compiled with --enable-ftp running (as a module in apache under red-hat 6.2) and I can not get file uploads through a web page to work!?!? The form variable $userfile (which is the file input name) is returning false; Any ideas how to troubleshoot this? -- PHP

[PHP] Re: PHP multipart form data

2002-08-08 Thread Lars Olsson
Mike Dunlop wrote: hello, i have php 4.2.2 compiled with --enable-ftp running (as a module in apache under red-hat 6.2) and I can not get file uploads through a web page to work!?!? The form variable $userfile (which is the file input name) is returning false; Any ideas how to

[PHP] multipart/form-data parsing problems

2002-05-24 Thread PHP at open channel
Hello, I have a form with a file upload field (named 'file1') and a number of other data fields for submission. I am attempting to use curl to take the user submitted data, add some additional data, submit it to another location, retrieve the response and send that response back to the user

[PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
Hi! Everytime I add enctype=multipart/form-data to my form tag the $HTTP_POST_VARS is empty. If I remove it, everything works. I need the multipart/form-data because I'm doing a file upload as part of my form. I'm running PHP 4.1.2. Any ideas? Thanks mike ps: Here is my core configuration:

AW: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
An: [EMAIL PROTECTED] Betreff: [PHP] multipart/form-data Hi! Everytime I add enctype=multipart/form-data to my form tag the $HTTP_POST_VARS is empty. If I remove it, everything works. I need the multipart/form-data because I'm doing a file upload as part of my form. I'm running PHP 4.1.2

Re: [PHP] multipart/form-data

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 18:01, Michael Ransburg wrote: Hi! Everytime I add enctype=multipart/form-data to my form tag the $HTTP_POST_VARS is empty. If I remove it, everything works. I need the multipart/form-data because I'm doing a file upload as part of my form. What does your form tag

RE: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
: [PHP] multipart/form-data On Tuesday 07 May 2002 18:01, Michael Ransburg wrote: Hi! Everytime I add enctype=multipart/form-data to my form tag the $HTTP_POST_VARS is empty. If I remove it, everything works. I need the multipart/form-data because I'm doing a file upload as part of my

Re: [PHP] multipart/form-data

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 18:12, Michael Ransburg wrote: Hi! It looks like that: form method=post action=submit.php enctype=multipart/form-data Looks OK. I tried shifting around the enctype, but it did not help. The http_post_vars is always empty. Only if I remove it, everything works.

RE: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
. I'll try to change this. thanks mike -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 12:19 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] multipart/form-data On Tuesday 07 May 2002 18:12, Michael Ransburg wrote: Hi! It looks like