Custom image name

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Dec 12, 2017 3:15 am

Tue Dec 12, 2017 3:17 am

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)
<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; ?>">
php-forum GURU
php-forum GURU
Posts: 688
Joined: Fri Apr 01, 2016 2:18 am

Sun Dec 31, 2017 7:15 am

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.
Post Reply