saving data to txt file using python
<p>I am new in python, and I really need some help. I am doing this memory game where I need to save user, game score and time into a text file using python. I have tried several ways to do it, but nothing seems to work. I need to get the text what is shown after game on  html page (statsParagraph) into *txt file using python
In my html code I have this:</p>

<pre><code>&lt;form  action="http://....python file addres" method="GET"&gt;
&lt;p id="statsParagraph" name="user" value=""&gt;&lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>in my javascript code I have this:</p>

<pre><code>function showstatistic(){ 
var user = prompt ("What is your name?","");
alert (user + ". game is over!")
var s="";
for(var i=0;i&lt;statistic.length;i++){
    var t=statistic[i].time;
    var timeString= (t-(t%60))/60+":"+(t%60);
    s += "User: " + user 
    +" &lt;br/&gt;"
    + " Game #"+ (i+1) +"  "
    +" &lt;br/&gt;"
    +" Guessed: "+ statistic[i].guessed
    +" &lt;br/&gt;"
    +" Minus points: "+ statistic[i].minuses
    +" &lt;br/&gt;"
    +" Guessed right: "+ statistic[i].plusPoints
    +" &lt;br/&gt;"
    +" Time: "+ timeString
    +" &lt;br/&gt;"
    +" &lt;br/&gt;";
    }   
$("#statsParagraph").html(s);
}   
</code></pre>
