Hi,
why in my new file put all program code?
When i open "new_doc.doc", give:
"
first line
second line<form method = "post">
Download: new_doc.doc,
<input type = "submit" name = "ok" value = "OK" />
</form>
"
<?php
if(isset($_POST['ok']))
{
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=new_doc.doc");
$data = "first line \n";
$data .= "second line";
echo $data;
}
?>
<form method = "post">
Download: new_doc.doc,
<input type = "submit" name = "ok" value = "OK" />
</form>