Given the following example html form:
<html>
<head>
<title>Sure wish I understood this. :)</title>
</head>
<body>
<p>Enter your data:</p>
<form method="POST" action="bar.rb" name="form_of_doom">
<input type="text" name="data">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
What would "bar.rb" look like to write the submission to a text file on the server? I am running apache, but I am trying to avoid databases and rails.