Re: adding confirmation to an existing upload form
| From: | Jason Wong | Date: | Wed, 11 Jun 2003 08:43:06 +0000 |
| Subject: | Re: adding confirmation to an existing upload form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151026@lists.php.net to get a copy of this message | ||
On Wednesday 11 June 2003 15:45, Artoo wrote:
> I have an upload script in which the user selects an image to upload, and a
> brief description. I would like to have some kind of confirmation that
> allows the user the ability to upload the file and description or go back
> and make changes.
>
> I was thinking of adding to the beginning of the "upload.php" script a
> thumbnail of the image and the short description followed by two buttons
> <input type=button value="SEND PHOTO TO SERVER"> and <input type=button
> value="MAKE CHANGES"> before the call to the function that actually uploads
> the image and saves the description in a database.
How are you going to display the thumbnail? If it's going to be generated
server-side there is no way to do it without uploading the original(!).
Otherwise you would have to use some client-side processing (java/javascript
?), in which case there is no need to 'pause' the script.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
It's very inconvenient to be mortal -- you never know when everything may
suddenly stop happening.
*/