본문 바로가기
PHP

자바스크립트 변수를 php에서 읽기

by 스윗라이프 2017. 7. 22.

///자바스크립트 변수를 php에서 읽기

<script language='javascript'>

var Roomidx='6' ;

</script>


<?

$Roomidx = "<script>document.write (Roomidx);</script>"

echo $Roomidx

?>



http://moa.pe.kr

'PHP' 카테고리의 다른 글

디렉토리의 파일목록 읽어오기  (0) 2017.07.22
htmlspecialchars()  (0) 2017.07.22
POST, GET으로 변수값이 넘어가지 않는 경우 - register_globals  (0) 2017.07.22
데이터 전송방법  (0) 2017.07.22
경로설정  (0) 2017.07.22

댓글