Save form to local file???

Hi guys,

I have created form with a textarea and I want the user to type the file name and choose from multi file format and specify the location(browse the local drive and look for folder).

How can I combine them to save the file into local? any idea??

Here is my code:
The first file:


<form enctype="multipart/form-data" name="Save" action="save.php" method="POST" target="win1" onsubmit="'', 'win1', 'width=400, height=200, left=200, top=50,status=yes,resizable=yes,scrollbars=yes')">
<input type="submit" Value="Save">
<textarea  name="txtname" id="txtarea" cols="40" rows="20"></textarea>

The second file (save.php):


Please, fill the follwing form to save the code: 
file name:
file type: .cpp .py .h
Sponsor our Newsletter | Privacy Policy | Terms of Service