exporting html to MSword dynamically

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sychurn
Forum Newbie
Posts: 1
Joined: Fri Apr 24, 2009 7:01 pm

exporting html to MSword dynamically

Post by sychurn »

Hi everyone,

I got this problem. I need to export a page to word dynamically. I mean whatever data there in my forms, that would be the data that will be exported to a word file. I have this code but I dont know how to make this dyamic.

Code: Select all

 
<?php
$vExcelFileName="export". ".doc";
header("Content-type: application/x-ms-download"); //#-- build header to download the excel file
header("Content-Disposition: attachment; filename=$vExcelFileName");
header('Cache-Control: public');
echo "hai";
?>
 
Last edited by Benjamin on Fri Apr 24, 2009 7:22 pm, edited 1 time in total.
Reason: Added code tags.
Post Reply