有一个ajax脚本
<script>
$(document).ready(function() {
// add click event to link
$("#refresh").click(function() {
// pass the value of the new password
$("#Container").load("10digpassgen.php");
return false;
});
});
</script>
如何将#Container的输出放入php变量? 我希望将此生成的密码放入数据库(我知道该怎么做)。
答案 0 :(得分:0)
您可以将返回输出存储在隐藏字段中,当表单提交时,您可以在帖子或获取中获取该值。