The form:
HTML Code:
<form name="form1" id="form1" action="testback.php" method="POST" target="_blank">
<textarea id="area" name="area" rows="5" cols="25">
Some stuff here to save add your text
</textarea>
<input type="submit" value="Save As" name="submit" id="submit">
</form>
testback.php (probably should use $_POST or $_GET, make sure it is set, etc).
PHP Code:
<?php
header( 'Content-disposition: attachment; filename=yourInfo.txt' );
$mess = $_REQUEST['area'] ;
echo $mess ;
?>
Haven't tested it on all browsers. I vaguely recall reading somewherethat there might be a samll issue with IE for Mac.