Re: [PHP] Problems with Multi-Uploads (AGAIN)

2002-06-02 Thread Jason Wong

On Sunday 02 June 2002 05:54, Nick Patsaros wrote:
 Okay so this is what I'm trying, basically for the
 purposes of posting a news article I want to be able
 to upload supporting text files with the content of
 the article.  Here's what I've got so far... I think
 I've totally missed the mark or understood the
 documentation in the manual on this... Someone please
 set me straight:

[snip]

I'm sorry if I missed it, but what is your problem? Posting a bunch of code 
without saying what is wrong with it does not help us to help you. I'm 
assuming (from the subject of your post) that this is a follow-up to one of 
your previous posts. In that case you should've continued with your previous 
thread because:

a) it is logical to do so
b) people who have been helping you before would know what was happening and 
the story so far.
c) when people search on the list archives in the months and years to come 
they would have one complete thread with the problem and solution that they 
can refer to.

But as you have started a new thread you shouldn't assume people have read 
your previous threads and know about whatever problems you may have. Thus you 
should state your problem clearly and explicitly.

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

/*
It's union rules. There's nothing we can do about it. Sorry.
*/


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




[PHP] Problems with Multi-Uploads (AGAIN)

2002-06-01 Thread Nick Patsaros

Okay so this is what I'm trying, basically for the
purposes of posting a news article I want to be able
to upload supporting text files with the content of
the article.  Here's what I've got so far... I think
I've totally missed the mark or understood the
documentation in the manual on this... Someone please
set me straight:

?php
/*Some loops will be added to this after variables
from the previous page.  This is why this has been
printed into PHP format.*/

print(form action=\process_form.php\
method=\post\ enctype=\multipart/form-data\);

print(First File: input name=\userfile[0]\
type=\file\br);

print(Second File: input name=\userfile[1]\
type=\file\br);


print(input type=\submit\ value=\Upload
Files\);

print(/form);
?

This is the catch file...:

?php
if
(is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'][0]))
{
   copy($HTTP_POST_FILES['userfile']['tmp_name'][0],
articles/placetogo);

copy($HTTP_POST_FILES['userfile']['tmp_name'][1],
articles/placetogo);

   print(Files Loaded Successfully!);
} else {
print(Unable to Load Files);
}
?

Any help is appreciated.  Sorry if the formatting on
this came out strange.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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