rawky1976 Posted January 26, 2007 Share Posted January 26, 2007 HelloI'm building a doument management site. Supposing I have a MySQL table with fields for document name and document description. An upload page copies the file via an upload script and file form control to a folder on the webserver (IIS).An SQL Insert command enters into the table above whatever name and description the user has given. Next a search results page displays information from the table in a dynamic repeating table. In this table I want the doument name entry to be a link to the document itself.Currently the user must enter the actual document name, including its file extension or the link will not function properly.Is there a better way to go about all this?Thanks, Mark Quote Link to comment Share on other sites More sharing options...
bibby Posted January 30, 2007 Share Posted January 30, 2007 Are you managing the file using the superglobal $_FILES , or is the script of another flavor?You could save the user some time by recalling $_FILES['[i]fieldname[/i]']['name'] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.