can you help me how to submit form and store the values in a .csv file and post it in another html.

here is my code...
<html>
<head>
<title>myForm</title>
<script language="JavaScript">
...