On Monday 16 December 2002 23:48, Lee P. Reilly wrote:
Hi there,
I'm currently using PHP 4.2.2 and I am have encountered some problems
when trying to access $HTTP_POST_VARS. The following statements have the
following return values:
echo $HTTP_POST_VARS['userfile'];
= C:\\Documents and
Think you want $HTTP_POST_FILES rather than $HTTP_POST_VARS.
As in $HTTP_POST_FILES['userfile']['name'];
HTH,
Richy
==
Richard Black
Senior Developer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 951 3481
Email: [EMAIL PROTECTED]
--- Lee P. Reilly [EMAIL PROTECTED] wrote:
The following statements have the following return
values:
echo $HTTP_POST_VARS['userfile'];
= C:\\Documents and Settings\\Administrator\\Desktop\\IR
Files\\gmp1.ir
echo $userfile;
= C:\\Documents and Settings\\Administrator\\Desktop\\IR
Thanks for all the replies. However, I still have problems as the following code
produces the following output:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo 0: . $userfile . br;
echo 1: . $HTTP_POST_FILES['userfile']['size'] . br;
echo 2: .
Message -
From: Chris Shiflett [EMAIL PROTECTED]
To: Lee P. Reilly [EMAIL PROTECTED]; PHP [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 10:04 AM
Subject: Re: [PHP] $HTTP_POST_VARS problem
--- Lee P. Reilly [EMAIL PROTECTED] wrote:
The following statements have the following return
Problem solved:
I forgot to add the enctype to the original FORM tag.
Cheers,
Lee,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
To: [EMAIL PROTECTED]
Subject: Re: [PHP] HTTP_POST_VARS problem
Please ignore my question - I just figured it out. I had the
method=post
in the input type=submit tag rather than in the form tag. It
works!
However, if one has an HTML select/option menu
Please ignore my question - I just figured it out. I had the method=post
in the input type=submit tag rather than in the form tag. It works!
However, if one has an HTML select/option menu scrolling list with multiple
selections, how does one get the number of values for the same name with
8 matches
Mail list logo