writetoword.php
<?php
$wordtext = $_POST['wordtext'];
$filename = $_GET['topicid'];
$fname = fopen("wordfile.doc","at");
fwrite($fname,"$wordtext \r");
fclose($fname);
?>
writetoword.html
<body>
<form action="writetoword.php" method="post">
<textarea rows=10 cols=55 name="wordtext"></textarea>
<input type=submit name="submit" value="Write to Word">
</form>
</body>
Save these files with filenames as shown. This is a base logic... you can implement this according to your needs... take a look at PHP file handling functions...
Good Luck
TommYNandA