Any chance you could have a look at this for me, would be very greatful.
The code for my first page where the data has to come through is this:
/form for checkboxes/
echo "<form action='presurvey.php' method='POST'>\n";
//$_SESSION['Paragraph']=array();
while ($row=mysql_fetch_array($result))
{
extract($row);
$_SESSION['Result']=;
echo"<input type='checkbox' name='interest[$Text]'
value='<u><strong>$Paragraph</strong></u><p>$Text'>$Paragraph\n";
echo"<br>\n";
}
echo "<p><input type='submit' value='Submit final documentation'>
The code for the other page where i want the data sent to is:
<?php session_start();?>
<?php
//foreach($SESSION['Paragraph'] as $value)
//$value = $row['Paragraph']"\n";
$value = $SESSION['Result'];
$sometxt = 'text will appear here';
$fname = 'presurveydoc.doc';
header("Content-type: application/msword");
header("Content-disposition: attachment; filename=\"$fname\"");
header("Content-length: " . strlen($value));
header("Content-transfer-encoding: ascii");
header("Pragma: no-cache");
header("Expires: 0");
echo $value;
die();
?>