묻고답하기

서버를 이전했더니 폼메일이 작동안합니다.
외국에서 받던 호스팅을 가비아로 옮겼는데 동작을 안하네요.
가비아에서는 소스는 수정해주지 않는다고 하고, 난감하네요.
따로 수정을 맡겨야 하나요? 아니면 간단히 해결되나요?

알고계신분 답변좀 부탁드릴께요 ^^
좋은 하루 되세요.

<?php
//VARIABLES
//$name = $_POST['name'];

//$query = "INSERT INTO phoneCounseling (name, email, message, contact_date) VALUES ('$name', '$email', '$message', NOW())";
//$result = mysql_query($query) or trigger_error("Query: $query\n<br />MySQL Error: ".mysql_error());

function redirect($page) {
 //set url
 $url = 'http://' . $_SERVER['HTTP_HOST'+ '+ '] . dirname($_SERVER['PHP_SELF']);
 //check for trailing slash
  if ((substr($url, -1) == '/') OR (substr($url, -1) == '\\')) {
   $url = substr ($url, 0, -1);
  }
 //add the page
 $url .= '/'.$page;
 //clear buffering
 ob_end_clean();
 header("Location: $url");
 exit();
}

$errors = false;
//$errors = array():

if (isset($_POST['submit'])) {

//variables
$name = $_POST['name'+ '];
$pn_area = (int)$_POST['phone_area'];
$pn_pfx = (int)$_POST['phone_pfx'];
$pn_num = (int)$_POST['phone_num'];
$interest = $_POST['interest'];
$hour = $_POST['+ 'hour'];


$to = 'line@nemonan.co.kr';
//$to = 'line@nemonan.co.kr';
$subject = 'Phone Counseling'; 

//form validation-------------------------------------------
 if (empty($name)) {$errors = true;$errorName = 'Please enter your name';}
 if (empty($pn_area)) {$errors = true;$errorPhone = 'Please enter your phone number';}
 if (empty($pn_pfx)) {$errors = true;$errorPhone = 'Please enter your phone number';}
 if (empty($pn_num)) {$errors = true;$errorPhone = 'Please enter your phone number';}
 if (!$pn_area) {$errors = true;$errorPhone = 'Only numbers are allowed for phone number';}
 if (!$pn_pfx) {$errors = true;$errorPhone = 'Only numbers are allowed for phone number';}
 if (!$pn_num) {$errors = true;$errorPhone = 'Only numbers are allowed for phone number'+ ';}
 if ($interest=="select") {$errors = true;}
 if ($hour=="select") {$errors = true;}
 
 
 
 //if there are no errors, e-mail the value
 if (!$errors) {
  $headers = "From: ".$to."\n";
  $headers .= "Reply-To: ".$to."\n";
  $headers .= "Mailed-By: ".$to."\n";
  $headers .= "MIME-Version: 1.0\n";
    
  $body = "$mime_boundary\n";
  $body .= "Customer Name: $name\n";
  $body .= "Phone Number: $pn_area-$pn_pfx-$pn_num\n";
  $body .= "Type of Interest: $interest\n";
  $body .= "Desired Hour: $hour\n";
  
  $sendEmail = mail($to, $subject, $body, $headers);
  
  if ($sendEmail) {
   $sendMail = 0;
   $name = '';
   $pn_area = '';
   $pn_pfx = '';
   $pn_num = '';
   $interest = '';
   $hour = '';
   
   //echo 'email success';
  } else {
   $sendMail = 1;
   //echo 'email failed';
  }  
 }
 //if there are errors, display error message
 else {
  echo 'error: true';
 }

}
?>
    <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
        <div id="pcFormWrapper">
            <div class="formDesc">Our medical professional will contact your for phone counseling at your convenience hours</div>
            <?php if ($sendMail=='0') { ?>
            <div class="phoneResultSuccess"><img src="images/ico_phone_success.gif" alt="Success" />Your request has been sent successfully</div>
            <?php } if ($sendMail=='1') { ?>
            <div class="phoneResultFailed"><img src="images/ico_phone_failed.gif" alt="Failed" />We'+ 're sorry. Your request has been failed due to system error.</div>
            <?php } ?>
           
            <?php //foreach ($errors as $msg) {echo $msg.'<br />';} ?>
           
            <div class="pcForm">
             <p>
                <label>Name</label><br />
                <input type="text" name="name" value="<?php echo $name;?>" />
                <?php if ($errors) {if ($errorName) { echo '<span class="error"><img src="images/error.gif" alt="Error" />'.$errorName.'</span>';}} ?>
                </p>
                               
             <p>
                <label>Phone#</label><br />
                <input type="text" name="phone_area" value="<?php echo $pn_area;?>" size="2" maxlength="3" /> -
                <input type="text" name="phone_pfx" value="<?php echo $pn_pfx;?>" size="2" maxlength="3" /> -
                <input type="text" name="phone_num" value="<?php echo $pn_num;?>" size="2" maxlength="4" />
                <?php if ($errors) {if ($errorPhone) { echo '<span class="error"><img src="images/error.gif" alt="Error" />'.$errorPhone.'</span>';}} ?>
                </p>               
             
                <p>
                <label>Type of Interest</label><br />
                <select name="interest">
                 <option value="select">Select Interest</option>
                    <option value="acne" <?php if ($interest == 'acne') { ?> selected="selected" <?php } ?>>Acne</option>
                    <option value="laser hair removal" <?php if ($interest == 'laser hair removal') { ?> selected="selected" <?php } ?>>Laser Hair Removal</option>
                    <option value="melasma" <?php if ($interest == 'melasma') { ?> selected="selected" <?php } ?>>Melasma</option>
                    <option value="rosacea" <?php if ($interest == 'rosacea') { ?> selected="selected" <?php } ?>>Rosacea</option>
                    <option value="scars" <?php if ($interest == 'scars') { ?> selected="selected" <?php } ?>>Scars</option>
                    <option value="skin tightening and toning" <?php if ($interest == 'skin tightening and toning') { ?> selected="selected" <?php } ?>>Skin Tightening &amp;Toning</option>
                    <option value="overall complexion" <?php if ($interest == 'overall complexion') { ?> selected="selected" <?php } ?>>Overall Complexion</option>
                    <option value="product recommendations" <?php if ($interest == 'product recommendations') { ?> selected="selected" <?php } ?>>Product Recommendations</option>
                </select>
                <?php if($interest=="select"){?><span class="error"><img src="images/error.gif" alt="Error" />Please select your interest</span><?php }?>
                </p>
               
                <p>              
                <label>Desired Hours</label><br />
                <select name="hour">
                 <option value="select">Select Hour</option>
                    <option value="morning" <?php if ($hour == 'morning') { ?> selected="selected" <?php } ?>>Morning</option>
                    <option value="afternoon" <?php if ($hour == 'afternoon') { ?> selected="selected" <?php } ?>>Afternoon</option>
                    <option value="evening" <?php if ($hour == 'evening') { ?> selected="selected" <?php } ?>>Evening</option>
                </select>
                <?php if($hour=="select"){?><span class="error"><img src="images/error.gif" alt="Error" />Please select your desired hour</span><?php }?>
                </p>          
             <p class="buttonCenter"><input type="image" src="images/btn_submit.png" alt="Submit" value="SUBMIT" name="submit" /></p>
         </div>
        </div>
    </form>




글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
훈장님 서버포트를 바꾸는 방법  
초보 최근문서.질문이요. [1] file 2009.05.29 by 초보
우정국 설치 오류 [1] 2009.05.29 by 때린데 또때려
조현묵 띄어쓰기가 안됩니다.  
dcclim 아시는 분 부디 가르쳐 주세요.. [1] 2009.05.29 by 때린데 또때려
뚱이마미 제로보드4 사용하다가 xe로 전환 했는데요. [2] 2009.05.29 by 뚱이마미
netoxlee 메인페이지에서 레이아웃 편집화면이 안뜨요.. 도와 주세요  
delab 페이지 생성시 문제점.. file  
별을쏘다-★ 잘못된 주민번호 형식 이라고 메세지가 나옵니다. [2] 2009.05.29 by 별을쏘다-★
Jiyoung540 웹진스타일 첨부파일 썸네일 이미지 사이즈 조절없이...편수값? file  
freemany 로그인 페이지 관련 문의드립니다.  
은빛나무 왕초보질문입니다 file  
악마곰 1.2.3 업데이트 중에.. file  
nuzz [폼메일] 서버를 이전했더니 폼메일이 작동안합니다. [1] 2009.05.29 by 닝기리쓰레빠
김창우740 회원가입시 성인만 회원가입 시킬려면 어떻게 해야되나요? [2] 2009.05.29 by ak
철이베베 지금 게시판 확장변수 한줄입력칸  
버섯도리 비밀글을 쓰고 다른 사람이 비밀번호를 알아야 볼 수 있는 게시판  
철이베베 도대체 기본값 기능은 언제부터 되는건가요. ㅠㅠ [2] 2009.05.29 by 철이베베
행호 갤러리 섬네일에 관련하여 질문드립니다. [2] 2009.05.29 by 행호
나혼자 백성찬님~~ [4] file 2009.05.29 by 나혼자
chinamakeup 통합 검색 입력창과 검색 단추 크기등 수정 어디서... [1] file 2009.05.29 by 때린데 또때려
비스타김 첫화면을 XE 홈페이지 처럼 만들려면 어떻게 해야하나요? [1] 2009.05.29 by 때린데 또때려
benkeii 게시판에 등록된 글에 투명설정 해제 방법 부탁드립니다. [1] 2009.05.29 by benkeii
benkeii 1.2.2에서 1.2.3 업글 후 게시판 본문 글 색깔이 흐릿해졌습니다. [2] 2009.05.29 by benkeii
초록배추 우측 상단 search 를 구글 검색으로 바꾸기.  
이런 파일첨부가 안 되고 권한이 없다면서 로그아웃이 되네요.  
은바가지 특정게시판만 백업하여 활용하고자 할 경우?  
텍사수 갤러리 게시판에 사진업로드 문제입니다 file  
당근로봇 content 위젯  
proengin 게시판 화면이 이상합니다. [4] file 2009.05.29 by 답변감사