Follow-up questions...

Image previewer add-on.
Post Reply
tomkirk23
Posts: 9
Joined: Tue Oct 20, 2009 8:57 pm

Follow-up questions...

Post by tomkirk23 »

Ok, I have this just about working as I want it...

I want to prompt the user for their name (I don't want to have security logins, I just want to prompt for their name). I then want to upload the files to a server folder named using a concatenation of the date/timestamp and the name they entered. Something like /2009-10-21 13:24:11 John Smith/

1) What is the best approach for gathering such information and passing it to JImageUpload? Do I use an HTML form for the name? Would this form exist on the same screen as the JImageUpload box? How is the name passed into the js file?

2) I would calculate the timestamp and concatenate the user's name within the js (creating the value of the folder to be created). How do make JImageUpload create such a foldername? What param do I use?

Thanks,

Tom K.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Follow-up questions...

Post by support »

Why not using 2 PHP web pages?

Page1.php:
Ask end-user info
Post to page2.php

Page2.php:
Get info from $_POST[] and build applet parameters accordingly.
You can concatenate info with PHP.

What do you think about it?

Post Reply