답변 1개
11개월 전
gpt로 해결했습니다.
<?php
// ... (previous code remains unchanged)
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Get the submitted email
$new_email = isset($_POST['mb_email']) ? trim($_POST['mb_email']) : '';
// Validate the email domain
if (!preg_match('/@naver\.com$|@gmail\.com$/', $new_email)) {
alert("허용된 이메일 도메인은 @naver.com 또는 @gmail.com 입니다.", G5_URL);
}
// Proceed with the rest of the email update logic here
// ...
}
// ... (rest of the code remains unchanged)
?>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
