/home/mjc1/public_html/renew/millennium/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
<?
$dir 
"."
include_once(
$dir."/_common.php"); 
?>
<?
// include("../../manage/category/common.php");

if($_REQUEST['g-recaptcha-response']==''){ echo "<script>alert('½ºÆÔ¹æÁöº¸¾ÈÀÌ È®ÀεÇÁö ¾Ê¾Ò½À´Ï´Ù.'); window.history.go(-1);</script>"; exit; }
 
  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,$connect_web);
     
      
$fidRow     =  mysql_fetch_array($fidResult); 
      
$_fid       =   $fidRow[0] +1;
    
     
$insertQry  =  " insert into mBoard_joint values 
                   ( '','
$name','$company','$email','$homepage','$tel','$hphone','$subject','$_content','', 
                     '','','A','n','
$reg_date','','$id','$_fid'
                     
                   )"
;
      
mysql_query($insertQry,$connect_web); 
?>
<script>
  location.href = "http://<?php echo $_SERVER['SERVER_NAME'];?>/<?php echo $millennium_dir;?>/company_tieup.php";
    alert("µî·ÏÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù. °ËÅäÈÄ¿¡ ¿¬¶ôÀ» µå¸®°Ú½À´Ï´Ù.");

</script>
<?    
    
}
?>