Does anyone know if it's at all possible that my results I get through php script, can be input to Microsoft Word. For example my user chooses three check boxes and the results are shown on screen depending on the boxes chosen. A button is then underneath these results with the following script:
<?php
$sometxt = 'text will appear here';
$fname = 'presurveydoc.doc';
header("Content-type: application/msword");
header("Content-disposition: attachment; filename=\"$fname\"");
header("Content-length: " . strlen($sometext));
header("Content-transfer-encoding: ascii");
header("Pragma: no-cache");
header("Expires: 0");
echo $sometext;
die();
?>
This script opens up word but any ideas how to get the results to display in Word.