묻고답하기

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

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

<?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 남기남
김창우740 회원가입시 성인만 회원가입 시킬려면 어떻게 해야되나요? [2] 2009.05.29 by ak
nuzz [폼메일] 서버를 이전했더니 폼메일이 작동안합니다. [1] 2009.05.29 by 닝기리쓰레빠
악마곰 1.2.3 업데이트 중에.. file  
은빛나무 왕초보질문입니다 file  
freemany 로그인 페이지 관련 문의드립니다.  
Jiyoung540 웹진스타일 첨부파일 썸네일 이미지 사이즈 조절없이...편수값? file  
별을쏘다-★ 잘못된 주민번호 형식 이라고 메세지가 나옵니다. [2] 2009.05.29 by 별을쏘다-★
delab 페이지 생성시 문제점.. file  
netoxlee 메인페이지에서 레이아웃 편집화면이 안뜨요.. 도와 주세요  
뚱이마미 제로보드4 사용하다가 xe로 전환 했는데요. [2] 2009.05.29 by 뚱이마미
dcclim 아시는 분 부디 가르쳐 주세요.. [1] 2009.05.29 by 때린데 또때려
조현묵 띄어쓰기가 안됩니다.  
우정국 설치 오류 [1] 2009.05.29 by 때린데 또때려
초보 최근문서.질문이요. [1] file 2009.05.29 by 초보
훈장님 서버포트를 바꾸는 방법  
네비게이터 시간대별 집계가 되질않아요[페이지에러]  
초보 하늘님 다시 질문이요.. [3] file 2009.05.29 by 때린데 또때려
김재민946 include "lip.php"; 에 대한 질문입니다.  
쭈니대디 페이지를 메인으로 만들때 어떻게 하나요? [1] file 2009.05.29 by 쭈니대디
정기태355 "회원정보" 페이지 소스는 xe 화일중 어떤 file을 보면 볼수 있을까요? [3] 2009.05.29 by 궁금이2
chiaya 게시판 관리 -> 추가설정 -> 에디터 스킨에 따른 파일 업로드 에러 [1] 2009.05.29 by chiaya
김재민852 회원정보,회원가입,비밀번호 창을 현재창으로 뜨게할때  
해오진(PHDKorea.com) xe 호스트 이전 방법(종합편), 아무도 알려주지 않는... file  
한마디 위젯 스타일에 관해서 만족할만한 답변이 없어서 다시 올립니다.  
알룩 통합 검색에서 바로 이미지 다운로드 받게 할 수 있는 방법 없을까요?  
Qwiff IP 차단목록에 등록을 해도 차단이 안되는현상 [3] file 2009.05.30 by Qwiff
초록배추 안정화 패치 덮어쓰기  
라미로즈 에효 뭐가 말썽인지 제발 답변점요 ㅠ  
별님왕자 1.2.2로 업그레이드 후 화면이 모두 사라졌습니다. [2] 2009.05.30 by 별님왕자
구퍼 사이트 이전시 도메인이 바뀌지 않네요 [4] 2009.05.30 by 구퍼