Re: [PHP] Missing posted variables in target script when multipart/form-data is set

2002-06-07 Thread Ed Greenberg


"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Friday 07 June 2002 12:32, Ed Greenberg wrote:
> > I have a small test script which fails when
enctype="multipart/form-data"
> > is set.
> >
> Have you enabled file uploads in php.ini?
>
> --

Problem solved! Thank you.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Missing posted variables in target script when multipart/form-data is set

2002-06-06 Thread Jason Wong

On Friday 07 June 2002 12:32, Ed Greenberg wrote:
> I have a small test script which fails when enctype="multipart/form-data"
> is set.
>
> 
> Your name: 
> You age: 
> You file: 
> 
>
> When the above is submitted to action.php, $_POST and $HTTP_POST_VARS are
> both empty.  If I remove the enctype="multipart/form-data" portion of the
> form tag, the arrays are set correctly, and in fact, the global_variables
> are created since register_globals is on.
>
> Platform is RedHat Linux 7.3 (Valhalla) with PHP 4.1.2 and Apache 1.3.23 as
> installed from RedHat's Valhalla RPMS.

Have you enabled file uploads in php.ini?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
A Smith & Wesson beats four aces.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Missing posted variables in target script when multipart/form-data is set

2002-06-06 Thread Ed Greenberg

I have a small test script which fails when enctype="multipart/form-data" is
set.


Your name: 
You age: 
You file: 


When the above is submitted to action.php, $_POST and $HTTP_POST_VARS are
both empty.  If I remove the enctype="multipart/form-data" portion of the
form tag, the arrays are set correctly, and in fact, the global_variables
are created since register_globals is on.

Platform is RedHat Linux 7.3 (Valhalla) with PHP 4.1.2 and Apache 1.3.23 as
installed from RedHat's Valhalla RPMS.

I've seen several postings similar to this, but none of them carried a
solution or even a hint.

I hope I've given enough info.


Ed Greenberg

PS: Resolving this would resolve issues that I have with a bunch of popular
PHP packages such as Gallery, Pagetool and phpWebSite.  The authors of these
packages all have multipart/form-data on almost all their forms, whether or
not uploading a file is required.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php