$file = "formData.txt";
$handle = fopen($formData, 'w') or die("Cannot open file - check write permissions!");
$formData = $_POST['fieldThatHasTheData'];
You would need a previous file that has the form data. I would certainly use post as the get method, although you could use get.