Results 1 to 1 of 1
Thread: Changing image variables
Feb 4, 2006, 14:13 #1
- Join Date
- Feb 2005
- was rainy Oregon now sunny Florida
- 2 Post(s)
- 0 Thread(s)
Changing image variables
I'm not sure how to word this so here is the code.
I am uploading an image and the form field name is "image".
echo 'Image name '.$image_name; // echo's image.jpg
$newimg = $image; // now to make it a new variable
echo 'this is the new name' .$newimg_name; // does not echo anything
I want to upload 3 images and have the same function process all three.
I notice that if I do.
echo $image; // this displays my temp location for the file
echo $newimg; // this also displays my temp location for the file
C:\WINDOWS\php575.tmp which is the same as $image
I know that uploaded "file" has several variables associated with it but would like to just declare it as a new variable.
Thank you for the help . . . Im confused.