Forum Moderators: coopster
Now we need to also upload a file. Uploading a file by itself works fine (store into a table as blob or a file in a directory.)
I cannot figure out how to upload data AND a file in one form. Anyone can walk me through this?
Thank you!
ChagriLama
<form enctype="multipart/form-data" action="upload.php" method="POST">
Data 1 : <input type="text" name="Data1" text="" />
Data 2 : <input type="text" name="Data2" text="" />
File 1: <input type="file" name="File1" />
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
<input type="submit" value="Submit Form" />
</form>
Get it?
I did just that, and voila! I now have my file uploaded and saved in a directory, and the information about it is sitting in a table.
It looks so simple now that you kicked my head in the right direction <G>... Thank you again.
I am officially "UN-stuck!"
Will follow now threads on checking input provided for "evil things".
(-)cl