Page 1 of 1

Posted: 2006-11-26T12:28:51-07:00
by Bonzo

Posted: 2006-11-27T11:50:59-07:00
by Bonzo
No I do not think your code will work.

To change the save path you need to put the relative or absolute paths to the folder.

Code: Select all

$new_name = $_SERVER['DOCUMENT_ROOT'] . "/images/ASP_Images/".$_FILES['Image']['name'].jpg";
OR
$new_name = images/ASP_Images/".$_FILES['Image']['name'].jpg";
Depending on the location of the form and the images folder.

Try something simple first and get it to work then build on it.
If you use my example code you can then modify it a bit at a time.

Try using the php bit of my code, change $up_files = $_FILES['filename']; to $up_files = $_FILES['Image']; and see if that works.

Posted: 2006-11-27T15:03:09-07:00
by Bonzo
$new_name = "images/ASP_Images/".$_FILES['Image']['name'].".jpg";
This line was incorrect

${'Photo' . $counter} = $Name . '-'.$_FILES['Image']['name']".jpg";
I have no idea what this line is supposed to do
Is this what you want as $Name has no value ?
$Name = $_FILES['Image']['name']".jpg";

Posted: 2006-11-27T15:48:19-07:00
by Bonzo
I have not seen this ${'Photo' . $counter} = $Name . '-'.$_FILES['Image']['name']".jpg"; before but that does not mean much as I am learning php

Code: Select all

$Photo[$counter] = $Name . "-".$_FILES['Image']['name']".jpg"; 
Give that a go.