PHP capabilities
Moderator: General Moderators
PHP capabilities
Is it possible to have a page that would automatically display the "browse" window on a page as opposed to clicking on a Browse button and opening up a Browse window.
What I would like to be able to do is have a form that inputs data into a database. Most of the data would just be text. Some of this data would have to be links to image files... usually 3-5 document images per database entry. I would like to have the page display the browse window on the screen to automatically list the directory where the scanned images are located and be able to click on the image file and have the location automatically entered into the form. I would like to be able to click on the image file and have it populate the first empty image field automatically, then the second, third and fourth, etc.
I hope all this makes sense and is possible. Thanks.
What I would like to be able to do is have a form that inputs data into a database. Most of the data would just be text. Some of this data would have to be links to image files... usually 3-5 document images per database entry. I would like to have the page display the browse window on the screen to automatically list the directory where the scanned images are located and be able to click on the image file and have the location automatically entered into the form. I would like to be able to click on the image file and have it populate the first empty image field automatically, then the second, third and fourth, etc.
I hope all this makes sense and is possible. Thanks.
can't do that, there will be too many. We will need to be able to search for customers via the information entered into the form such as firstname, lastname, dob, etc, and then display that customers record along with the document that go along with them.
What about just having a "browse" button beside each image field and letting the browse window open up? Can you make it so that selecting a file only puts the location of the file so only the link will be added to the database?
What about just having a "browse" button beside each image field and letting the browse window open up? Can you make it so that selecting a file only puts the location of the file so only the link will be added to the database?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
with a properly functioning browser, you'll only recieve the filename (along with the binary data).. something that can be done is reading the field with Javascript to extract the path only. As long as the file form fields themselves aren't in the form, the browser won't upload the files. But that requires Javascript to be on and allow reading of the file fields.
I'd still advise doing a thumbnail gallery for the selection. You can pre-filter it given some of the information they already supply by that point (might need to rearrange some of it to get the filtering information)
I'd still advise doing a thumbnail gallery for the selection. You can pre-filter it given some of the information they already supply by that point (might need to rearrange some of it to get the filtering information)
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
it's relatively simple:the query can easily vary depending on what information the work supplies, what features you want to support (like partial name searching through worker input wildcards)
Code: Select all
select * from your_table where firstname like '%$first_partial%' OR lastname like '%$last_partial%' OR ssn = '123456789' OR dob = '1969-07-20'