i have an image upload script and i have the file name set to save as 'thumb_pic.jpg' on upload. But i want users to be able to upload a maximum of 8 different photos, with the same name but i just want to add 1-8 at the end of each file name like so:
'thumb_pic1.jpg', 'thumb_pic2.jpg' etc.
Here's the snippet of my code which is where the file name is set. Can anyone tell me what i'd need to add to do what i'm trying to do? Thanks.
$filename = $_POST['value'] ? $_POST['value'] :
$folder . 'thumb_pic.jpg';