아포스트로피 또는 세션에서 다른 HTML 특수 문자가없는 한 아래 제공된 코드를 사용하면 값을 전달하려고합니다. htmlspecialchars() 및 htmlentities() 모두 성공하지 못했습니다. 도와주세요. 감사, 제임스POST에서 다른 페이지에 세션 변수
<?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