Upload form and upload log with custom file names

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Katie82
Forum Newbie
Posts: 1
Joined: Tue Sep 29, 2009 3:29 pm

Upload form and upload log with custom file names

Post by Katie82 »

Hi,
I am a teacher and I am trying to create a way for my students to turn their work into me. I create a lot of HTML interactive projects for my students and just need a way for them to turn in their work when they are finished. I am getting overwhelmed with an email inbox FULL of files with all different formatting etc.

Basically, my students create word docs. I need an upload form that will ask for First name, last name, email and class period and then pass on into the file name once it is uploaded.

If my students go to http://www.mysite.com/upload and fill in the form, I need their file to look like this:

http://www.mysite.com/upload/[i]class_period[/i]/Firstname-Lastname-class_period-email-timestamp(MMDDHH:HH).doc

I think the time stamp would be helpful if students turn in multiple times.

One more thing I can foresee as a problem is that I cannot open docx files from school, so a check to ensure they are uploading only doc files would be very helpful. Any other suggestions to make this easier would be very helpful.

I could also use a text log of what files have been turned in. I could import a comma delimited text file into my excel grade book and then use VBA code to sort who has uploaded their file already.

Thanks for any help or suggestions and hope I'm not asking too much!

-Kate
John.Mike
Forum Newbie
Posts: 18
Joined: Fri Sep 04, 2009 11:43 pm
Location: Canton.China

Re: Upload form and upload log with custom file names

Post by John.Mike »

suggest that mkdir() and basedir() would help u. :)
Post Reply