/home/mjc1/public_html/html/m/jointBoardProcess.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php include_once("./_common2.php"); ?>
<?
header
("Content-type:text/html;charset=euc-kr");
 include(
"../../manage/category/common.php");
 
  if( isset(
$name) && isset($subject) && isset($content)  ){
    
     
$_content       =     addslashes($content);
     
$reg_date       =     Time();
     
$tel            =    $tel1."-".$tel2."-".$tel3;
     
$hphone         =    $hp1."-".$hp2."-".$hp3;
     
      
//fid를 구한다.
     
     
$fidQry      =  "select fid from mBoard_joint order by fid desc limit 1";
     
$fidResult   =   mysql_query($fidQry);
     
      
$fidRow     =  mysql_fetch_array($fidResult); 
      
$_fid       =   $fidRow[0] +1;

      
$subject strip_tags($subject);
    
     
$insertQry  =  " insert into mBoard_joint values 
                   ( '','
$name','$company','$email','$homepage','$tel','$hphone','$subject','$_content','', 
                     '','','A','n','
$reg_date','','$id','$_fid', ''
                     
                   )"
;
                   
//uid, 상호(성명), 회사명, 이메일, 홈페이지, 전화번호, 핸드폰번호, 제목, 내용, 첨부파일, 사용프로그램, hit, thread, ch_veiw, 등록날짜, temp, id, fid, work_res
      
mysql_query($insertQry); 

      
$txticonv("utf-8","euc-kr","등록이 완료되었습니다. 검토후에 연락을 드리겠습니다.");
?>
<script>
  location.href = "./company_tieup.php";
    alert("<?php echo $txt?>");

</script>
<?    
    
}
?>