This is what I tried:
if (is_uploaded_file($HTTP_POST_FILES['image1']['image1']) {
move_uploaded_file($HTTP_POST_FILES['image1']['image1'],
$DOCUMENT_ROOT/images/$file);
}
and also this:
if (is_uploaded_file($_FILES['image1']['image1']) {
Did you read that link at all?
adapting the manual's code to suit your form names and directory
preferences:
if (is_uploaded_file($_FILES['image1']['tmp_name'])) {
copy($_FILES['image1']['tmp_name'],
$DOCUMENT_ROOT/images/$_FILES['image1']['name']);
} else {
echo Couldn't do it!;
On Sunday 12 January 2003 20:39, Kyle Babich wrote:
This is what I tried:
if (is_uploaded_file($HTTP_POST_FILES['image1']['image1']) {
move_uploaded_file($HTTP_POST_FILES['image1']['image1'],
$DOCUMENT_ROOT/images/$file); }
and also this:
if
I just broke skin with php and I'm learning forms, which I'm not good
with at all. These are snippets from post.html:
form method=get action=process.php enctype=multipart/form-data
and
input type=file name=image1 maxlength=750 allow=images/*br
input type=file name=image2 maxlength=750
Hi,
the files themselves are available in the $_FILES array, but it's not as
simple as that.
may i recommend you start by copying the Examples 18-1 and 18-2 from this
page:
http://www.php.net/manual/en/features.file-upload.php
Once you've got THAT code working smoothly and understand what's
5 matches
Mail list logo