hi all, i have a simple POST form on my site which i need the users to upload files also. the form sends all the fields content to the DB. my question is: how should i write this in PHP - so users can upload a file and when they click submit - the location of the file, along with the other form fields are sent to the database, and the uploaded file is being uploaded. please help, thanks
Checkout with good examples of file uploading... http://www.tizag.com/phpT/fileupload.php Also see more options and more theory in http://in2.php.net/manual/en/function.move-uploaded-file.php