当我使用下面提供的代码时,一切正常,除非在SESSION中有一个撇号或其他html特殊字符,我试图传递值。我试过htmlspecialchars()和htmlentities()都没有成功。请帮忙。 感谢, 詹姆斯POST另一个页面上的SESSION变量
<?php
<form action='ashlyBlogBig2.php' method='POST'>
<input type='hidden' name='title' value='{$_SESSION['title']}'/>
<input type='hidden' name='time' value='{$_SESSION['time']}'/>
<input type='hidden' name='blog' value='{$_SESSION['blog']}'/>
<input type='submit' name='to you' class='productButtons' value='Read On. . . .'>
</form> ";
?>
请显示一些样品数据,预期产量和实际产量。并请定义什么“工作正常,除非”意味着确切。 – deceze 2012-03-06 02:23:43