Re: [PHP] Simple Form Processing

2003-01-12 Thread Jason Wong
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 (is_uploaded_file($_FILES['imag

Re: [PHP] Simple Form Processing

2003-01-12 Thread Justin French
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

Re: [PHP] Simple Form Processing

2003-01-12 Thread Kyle Babich
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']) { move_uploaded_file($_FILES['image1']['

Re: [PHP] Simple Form Processing

2003-01-11 Thread Justin French
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 happ

[PHP] Simple Form Processing

2003-01-11 Thread Kyle Babich
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: and but how would I pass the actual image on because when I do something like this: as you could probably guess only the filename prints. So how do I take the image instead