Hi folks,

I've been banging my head against a problem with file uploads for the last 
few days. Perhaps someone here has seen this before.

My problem is that when handling my file uploads, I can print out the values 
of my form variables, both using HTTP_POST_VARS["var"] and $var. I can also 
see all the values in phpinfo(). However, as soon as I try and do anything 
with the variables, they appear to be empty. So even trying a simple
if ($HTTP_POST_VARS["var"] == "value") {
        print "Got here";
}

fails to match the variable!

I'm running PHP Version 4.0.4pl1 on RedHat 7.0

My form has the following form tag:
<form enctype="multipart/form-data" action="gallery.php" method="post">

After that I have 2 txt input fields, and a file input field. (I've also 
tried both with and without a MAX_FILE_SIZE field). 

I've tried everything I can think of - even trying to convert the values in 
HTTP_POST_VARS into completely new variables, but nothing seems to work.

Has anyone else encountered anything like this? Any suggestions of where I 
should look to fix this?

Cheers for any help ;-)

.steve

-- 
http://www.cookstour.org/
http://www.wapwarp.com/
http://www.wap-dev.net/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to