在a.php 程序上有个 textarea (内容是动态生成的)的输入框 有以下html 的代码, 请问如何通过php写到 b.html 那个id="right" 里面?
请高手们指点一下 谢谢!
a.php 文件<!-- production rank 1 start -->
<li>
<p class="img" align="center">
<a href="http://www.xxxx.com/shopimg/201105/thumb/1304616821.jpg" target="_blank" title="中文2">
<img src="http://www.xxxx.com/shopimg/201105/thumb/1304616821.jpg" width="200" height="200" alt="中文2" />
</a>
</p>
<p class="sn" align="center">»
<a href="http://www.xxxx.com/shopimg/201105/thumb/1304616821.jpg" title="中文2" target="_blank" >中文2</a>
</p>
<p class="ss" align="center"> </p>
<p class="addo"></p>
</li>
<!-- production rank 1 end --><!-- production rank 2 start -->
.。。b.html 文件<html>
<body>
<div id="content">
<div id="left">
xxxxxxxxx
</div>
<div id="right">
<!-- need to replace content start -->
<!-- need to replace content end --> </div>
</div>
</body>
</html>
请高手们指点一下 谢谢!
a.php 文件<!-- production rank 1 start -->
<li>
<p class="img" align="center">
<a href="http://www.xxxx.com/shopimg/201105/thumb/1304616821.jpg" target="_blank" title="中文2">
<img src="http://www.xxxx.com/shopimg/201105/thumb/1304616821.jpg" width="200" height="200" alt="中文2" />
</a>
</p>
<p class="sn" align="center">»
<a href="http://www.xxxx.com/shopimg/201105/thumb/1304616821.jpg" title="中文2" target="_blank" >中文2</a>
</p>
<p class="ss" align="center"> </p>
<p class="addo"></p>
</li>
<!-- production rank 1 end --><!-- production rank 2 start -->
.。。b.html 文件<html>
<body>
<div id="content">
<div id="left">
xxxxxxxxx
</div>
<div id="right">
<!-- need to replace content start -->
<!-- need to replace content end --> </div>
</div>
</body>
</html>
解决方案 »
- 请教2个问题:php的imagecreatefromjpeg和一个ajax
- 为什么用getenv("REMOTE_ADDR")获得IP地址失败
- php中session 地址栏出现,如何去除??
- 求PHP模拟POST,SESSION实例
- apache 为什么不支持.htaccess 文件?
- PHP的FTP函数
- 初学者问:Fatal error: Function name must be a string
- 一个smarty的简单问题
- 怎样过滤去html中诸如<table>等的各种控制符?
- 高手,救急!
- Warning: Smarty error: unable to read resource: "index.tpl" in D:\Apache2.2\htdo
- 网页显示
如果目的是展示代码的话,按楼上的方法,并且中间还要经过htmlspecialchars()函数转义
另外要注意从提交到展示整个过程的编码要保持一致