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="window.open('', 'win1', 'width=400, height=200, left=200, top=50,status=yes,resizable=yes,scrollbars=yes')"> <input type="submit" Value="Save"> <br> <textarea name="txtname" id="txtarea" cols="40" rows="20"></textarea> </form>
The second file (save.php):
Please, fill the follwing form to save the code:file name:
file type: .cpp .py .h