我有这个 php 文件名为:pdf5.php
在该文件中,我有以下几行:
$pdf->setSourceFile('h.pdf');
我希望能够使用代码或脚本编辑这些行“h.pdf” 。
问题是我想这样做:
我有另一个名为 editpdf.php 的 php 文档
使用这些输入
<input type="text" value="h.pdf" /> <br>
<input type="text" value="" /> - Lets say the user puts: **f.pdf**
<input type="submit" name="submit" value="Modify" />
并且当用户单击修改时,-pdf5.php- 中的 -h.pdf- 更改为 -f.pdf-
像这样:$pdf->setSourceFile('f.pdf');
我想我发现了类似的东西,但它只编辑同一个页面,它不允许用户修改它。
JavaScript 替换()
<script type="text/javascript">
var str="Visit Microsoft!";
document.write(str.replace("Microsoft", "hello"));
所以有什么想法???我不知道我是否让自己足够清楚......??thnx 在高级..