PDA

View Full Version : File Field in Form


hawkwind
11-17-2006, 07:26 PM
I've inserted a file field in a submission form. The form detects files on the local drive, but doesn't submit them along with other information. What is the easiest way to acheive this?

domedia
11-17-2006, 07:27 PM
What code do you currently use to send the local file from the form?

hawkwind
11-17-2006, 07:34 PM
Hi - Html is sent to a form2mail.php file held on the server...

hawkwind
11-17-2006, 07:37 PM
I don't know if there is any code to send the file. It seems that the form only locates it!

davidj
11-17-2006, 07:45 PM
yes your right

you need a php script to handle the upload

i have this on the list for a tutorial

hawkwind
11-17-2006, 07:50 PM
what about the php script that already handles all the other information? Do I modify that? Or do you mean I have to refer one form to two php scripts?

domedia
11-17-2006, 07:52 PM
what about the php script that already handles all the other information? Can you post the code for the script?