개발일지/php
$_GET['name']
Kiwisae
2023. 3. 30. 14:20
GET 방식으로 전송된 값을 가져올때 사용한다.
예를 들어 다음과 같은 URL이 있다고 할때
http://test.com/index.jsp?no=21
no라는 이름으로 전달된 값인 21을 가져오기 위해서는
$_GET['no'] 라고 사용한다.
<a href="http://test.com/index.jsp?no=<?=$_GET['no']?>">