Custom image name

A

Anonymous

Guest
Hello. Is there anyway to create custom image name? I was trying this code, but it didn't work (it only uploads photo and renames it in database, which causes to not display an image)

<label>Photo</label>
<input type="file" name="prd_img" value="<?php echo $prd_img; ?>">
<label>Photo name</label>
<input type="text" name="prd_img" value="<?php echo $prd_img; ?>">
 
why would you want to change the actual filename? where should this text be displayed? but at least you should not take the same name for different inputs, if its not an array.
 
Back
Top