Question
Question about adapting an update form for image uploads
I have a form that updates a recordset in a MySQL database.
Vanilla stuff,
really.
I want to add the following capabilities to the form -
1. Upload an image
2. Resize the image according to preset maxwidth/height values, and save it
with the uploaded name
3. Resize it to a thumbnail and save that with a modification of the
uploaded name
4. Add the parent image name (and all the other fields) back to the
database for that particular record number
I know how to do #1, #2, and #3 (using GD to do this), but what I am not
sure about is a) how to adapt the existing form to do this (more than just
adding an image field), and b) what order to do things in.
I think I have to add 'enctype="multipart/form-data"' to the <form> tag, is
that right? Will that affect any of the rest of the functionality of the
form?
Also, I'm thinking I need to upload the image files and process them
*before* adding the data to the database - would that be the best way?
Thanks for any suggestions....
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
really.
I want to add the following capabilities to the form -
1. Upload an image
2. Resize the image according to preset maxwidth/height values, and save it
with the uploaded name
3. Resize it to a thumbnail and save that with a modification of the
uploaded name
4. Add the parent image name (and all the other fields) back to the
database for that particular record number
I know how to do #1, #2, and #3 (using GD to do this), but what I am not
sure about is a) how to adapt the existing form to do this (more than just
adding an image field), and b) what order to do things in.
I think I have to add 'enctype="multipart/form-data"' to the <form> tag, is
that right? Will that affect any of the rest of the functionality of the
form?
Also, I'm thinking I need to upload the image files and process them
*before* adding the data to the database - would that be the best way?
Thanks for any suggestions....
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================