조회 수 15898 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

php에서 script로 변수 전달 후 html에 div로 내용 출력하기

html소스보기로 쉽게 노출될 수 있는 내용을 숨기기 위한 간단한 전략.

뭐 내용알면 다 빼내가겠지만.. ^^;;


<?

$cont = "바부들아~";

?>


<html> 

<head> 

<script type="text/javascript"> 

function changeMsg(){ 

        document.getElementById("cont").innerHTML="<?=$cont?>"; 

</script> 

</head> 

<body> 

<div id="cont" style="font-size:12px;text-decoration:none;"></div> 

</body> 

</html>


로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
2344 Fatal error: Call to a member function get() on null in C:\AutoSet9\public_html\files\cache\template_compiled\4cfb1455260434e25c468dc186e72b58.compiled.php on line 101