$urlencode [변수 : string] 정보
$urlencode [변수 : string]
본문
$urlencode [변수 : string]
-> 처리후 돌아갈 url에 urlencode 시킨것
-> index.php에서 생성, 모든 페이지에서 아무런 조치없이 $urlencode변수를 사용할수 있다
-> 넘어온 $url값이 있을 경우에는 $url을 사용하고, 그렇지 않을경우에는 $_SERVER["REQUEST_URI"]
를 사용한다.
if (!empty($url)) {
$urlencode = urlencode($url);
} else {
$urlencode = urlencode($_SERVER["REQUEST_URI"]);
}
-> 처리후 돌아갈 url에 urlencode 시킨것
-> index.php에서 생성, 모든 페이지에서 아무런 조치없이 $urlencode변수를 사용할수 있다
-> 넘어온 $url값이 있을 경우에는 $url을 사용하고, 그렇지 않을경우에는 $_SERVER["REQUEST_URI"]
를 사용한다.
if (!empty($url)) {
$urlencode = urlencode($url);
} else {
$urlencode = urlencode($_SERVER["REQUEST_URI"]);
}
댓글 전체