...

View Full Version : grabbing just the file name from a file field



ventura
02-25-2003, 12:05 AM
how do i grab just the file name from a file upload field?

Graeme Hackston
02-25-2003, 02:28 AM
function File_Name_Only(str) {
file_name = str.substring(str.lastIndexOf('/')+1,str.length)
return file_name
return null
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum