with this piece of code I managed to convey the information from one field to one file.
Is it possible to let different fields in one form write to separete files?
How is that done?
<head>
<title>skruva</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
_
<!-- form -->
<form name="form1" method="post" action="">
<textarea name="textarea"></textarea>
<br>
<input type="submit" name="Submit" value="skicka">
</form>
<?php
/* some filehandling
*/
$filename = "data.txt";
$filepointer = fopen ($filename, "a+");
fwrite ($filepointer, "$textarea");
fclose ($filepointer)
?>
/* including the contents of 'data.txt'
*/
<strong>
<h1><em><?php require_once('data.txt');
?></em></h1></strong>
</body>
</html>