I am trying to let users enter various information onto my site and then let them export it into Word...I am able to get the exporting down fine and automatically open the Word Doc in Word, but Im not sure how to do formatting. Using html tags in the PHP echo does not work...Any ideas?
Here is what i have...
<?php
$FileName="NewFile". ".doc";
header("Content-type: application/x-ms-download");
header("Content-Disposition: attachment; filename=$FileName");
header('Cache-Control: public');
echo "This is a new Word Document";
?>