GET 방식으로 전송된 값을 가져올때 사용한다.

예를 들어 다음과 같은 URL이 있다고 할때

 

 

http://test.com/index.jsp?no=21 

 

 

no라는 이름으로 전달된 값인 21을 가져오기 위해서는

 

$_GET['no'] 라고 사용한다.

 

<a href="http://test.com/index.jsp?no=<?=$_GET['no']?>">

'개발일지 > php' 카테고리의 다른 글

str_replace &lt; &gt; &quot;  (0) 2023.03.10

+ Recent posts