I have some code that allows text to be put into word:
<?php
$sometxt = 'foobar foobar foobar foobar foobar more foobar';
$fname = 'foo.doc';
header("Content-type: application/msword");
header("Content-disposition: attachment; filename=\"$fname\"");
header("Content-length: " . strlen($sometxt));
header("Content-transfer-encoding: ascii");
header("Pragma: no-cache");
header("Expires: 0");
echo $sometxt;
die();
?>
My problem is that this is my code for the results:
<?php
if(isset($POST['interest'])) {
foreach($POST['interest'] as $value){
echo "<p>{$value}</p>";
}
}
?>
How do I use the two together to give the desired effect???