php alert에 변수표시? 채택완료
izabella
11년 전
조회 9,240
$join_date = explode("|", $config[cf_1]);
$s_date = $join_date[0];$e_date = $join_date[1];
$day = date("Y-m-d");
$start = strtotime($s_date);
$end = strtotime($e_date);
$days = strtotime($day);
if ($config[cf_1_subj]!=="") {
if ($config[cf_1] == "") {
alert('회원가입 보류중입니다.');
exit;
} else {
if ($start>$days || $end<$days){
alert("회원가입기간: ~ "); <-----------요기를 어떻게 해야 날짜가 뜨는지모르겠습니다. 이상태에서는 alert창에 "회원가입기간:~"이렇게만 뜹니다.
exit;
}
}
};
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인