Posted: Sat Jan 13, 2007 7:39 am upload location of the file in mysql
this is the scenario :
i need an add button which when clicked should open dialog like the browse(like when <input type="file" type="upload">is used). When the file required is selected, add the location of the specified file in the database table.
how do i implement this
Posted: Sun Apr 22, 2007 10:22 am Use a "file" field.
The only way to get a dialog with HTML that lets a user browse files is via that 'file' input (Flash may have other capabilities). Simplest thing to do is to use a file field and an onsubmit handler to disable/clear the file field after transfering the value stored therein to a hidden field. That way you don't get the file but do get the path. The path seems of limited usefulness to me, as it is only valid locally, but you know better than I what the purpose is.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum