<input type=text>? Don't you want <input type=file>? Depending on the server side component that's processing your form, you should be able to extract the filename, path, etc. I personally use AspUpload at http://www.aspupload.com/. If not just hack off the first slash (/) from the right. Ryan Finley President - SurveyMonkey.com -----Original Message----- From: Aaron Cole [mailto:awcole72 at hotmail.com] Sent: Friday, March 16, 2001 1:32 PM To: thelist at lists.evolt.org Subject: [thelist] Uploading file names to a database I'm building a UI for myself that will allow me to add images from my local computer to the database on my server. I am using an <input="text" name="image"> form field and then submitting the information to an action page which has an INSERT statement. The problem is that the input value includes the entire path. Is there anyway to only upload the file name itself; ie. image.jpg ? TIA Aaron _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com --------------------------------------- For unsubscribe and other options, including the Tip Harvester and archive of TheList go to: http://lists.evolt.org Workers of the Web, evolt !