|
Posted by Ste on 10/23/07 20:31
Hi there,
I use a web-based database which has online forms that users can use to
submit data directly into the database. Each user, when logged into
this database, can submit multiple application forms (usually anywhere
between 1 and 10 submissions).
The only problem is that there is no way for them to upload files with
each of these application forms (as the forms are not that customisable
and the functionality simply isn't there), but I require them to upload
around 7 documents with each form (2 PDF's and 5 JPG images), so I'm
currently looking for workaround to this issue.
The only thing I can do within this fairly rigid form is to create a
hyperlink to my own linux web hosting space, which could contain some
sort of form (via a popup browser window) that would allow the user to
upload these files.
I have around 300 users, and each of their uploaded files should remain
confidential. Therefore, it would be ideal if this form could not only
upload files to my web space, but also create a folder which is named
with their own unique Customer ID (i.e. CUST1234) - then within each
folder, create a sub-folder which is named with each individual
application ID (i.e. APP1234).
Is this something that can be done with PHP? Or should I be looking at
Perl scripts or similar?
I can use the JavaScript on the 'rigid form' to create a dynamic URL
that contains their Customer ID and Application ID (i.e.
mywebsite.com/uploads.php?CustID=CUST1234&AppID=APP1234).
But I'm not sure how I could go about doing this and what
authentication would be required to enable the script to create folders
and upload files into them on my web space? The ability to be able to
view what has already been uploaded into each folder would also be very
useful, as would the intelligence of the script to check if the folder
is create, then if not, create it; or if it is there, simply upload the
files into it.
I don't even know where to start searching for existing scrips that can
do this so help and advice would be appreciated.
Thanks,
Ste
[Back to original message]
|