Forum Moderators: open
What Im trying to do, is create 6 file fields for images. When the user selects an image with file field named gal_img_1, I need the text field img1 to show the name of the image itself, minus the directory path it came from.
This is in conjunction with a thumbnailer and image uploader I've already got working and is to input the image names into mysql along with all the other newly created information from the form.
Any help would be appreciated, Im at a road block
For example:
var thePath="path/to/my/image.gif";
var pathArray=thePath.split("/");
You image (sans path) will the be the last item in the array pathArray.
HTH