File uploading from a form

I’m completely new to web design and am looking to add the programming functionality to back the form I’ve created for my website, so hopefully someone can point me in the right direction.

I have a form that has both data and file fields and I need to be able to have the form contents transferred to a file on my server. I want the contents of the form to be accessible only to me when I access my server.

I don’t really understand how works but was hoping someone could either offer me the proper script or point me to a novice-level tutorial that will explain what I need to do. Thanks!

You are going to need a database to store your form values. And you will save the file to disk. Google for uploading a file There will be tons of examples out there. You can also google. Posting forms in

Good luck

If I’m correct you want to upload both form data and files to server, Just out of curiosity why would you want to upload for data to a file?