묻고답하기

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

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

<?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 남기남
VINA답답이 1.0.2XE안정화 배포 버전에서... [1] 2008.04.11 by 백성찬
KnueHisedu 설치 관련 오류인 듯 하여 올립니다. [2] [1] 2008.04.11 by KnueHisedu
똑디 1.1.0버전이 이번달 안에 나올까요? [1] 2008.04.11 by 똑디
coke1986 제로보드 내 동영상 관련 질문입니다.  
김강래237 1.0.2 업데이트 후... 제목으로 정렬이 되나요??? [3] 2008.04.11 by 김강래237
박철현122 홈페이지에 딸랑 게시판만 쓰고있는 유저입니다. 게시판 사이즈가 지금 현재  
ㅁㅁ 기사 [1] 2008.04.11 by J..
김한수 인터넷 방송을 제로보드XE로 구축하려고합니다. [1] 2008.04.11 by 백성찬
sakurastorm 로그인 할때랑 로그아웃 할때랑 레이아웃이 다릅니다 file  
FPSBBO 제로보드기본스킨레이아웃.가로싸이즈를줄일려면. [2] 2008.04.11 by fpsbbo
제로보드 제로보드를 테이블내에 불러오고 싶습니다. [4] 2008.04.11 by 제로보드
이슬 관리자 닉네임 변경이 가능한지요? [2] 2008.04.11 by 이슬
김보형956 메뉴 수정이 안되고 있어서 [1] 2008.04.11 by J..
달구벌 로그인 위젯 사용하는데, 테두리에 짙은 회색박스가 생기네요 [1] file 2008.04.11 by neostream
임상태 레이아웃이 안보여여.. [2] 2008.04.11 by 저하늘구름
정정훈962 대회신청 폼양식이 있는 게시판스킨 혹시 없나요? [4] 2008.04.11 by J..
이슬 제로보드XE 1.0.2 버전 설치했는데 안 돼요. [8] 2008.04.12 by 이슬
lovelyku 최근문서 위젯 도와주세요~~ [1] 2008.04.12 by Dustwo
류성영387 아이프레임에서 최근문서 출력문제  
쌈돌이 그레이션 일괄로 하는법