【发布时间】:2017-03-18 18:58:18
【问题描述】:
嗨,我想将 load.php 页面中的 div 加载到我的 index.php 页面中,并提交表单数据,但我只得到文本(未加载表单值)所以这里是代码
index.php:
<script>
$(document).ready(function(){
$('#result').load('load.php #load');
});
</script>
<div id="result" ></div>
加载.php:
<div id="load">Emotions that causes your project <?php echo $test;?></div>
但它给了我:
<div id="result">Emotions that causes your project</div>
所以它不会在我的#result div 上回显 $test 变量,所以你能建议我如何让它工作,谢谢。
【问题讨论】: