我想构建一个根据用户将输入的表单构建Word文档的工具。到目前为止,一切正常,但是我想在页面上添加一个框架,有没有办法做到这一点?
我试图在CSS中添加边框,但没有成功。
<?php
function wordfile() {
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=זכד –
$_POST[name].doc");
echo "<html>";
echo "<style>body{direction:rtl;font-family:Tahoma;} h1{font-
size:14pt;}</style>";
echo "<meta charset=UTF-8>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=Windows-1252\">";
echo "<body>";
echo "<h1>My name - $_POST[name]</h1>";
echo "<p>test $_POST[name].</p>";
echo "</body>";
echo "</html>";
}