글을쓰고확인을 누르면 .. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

글을쓰고확인을 누르면 .. 정보

글을쓰고확인을 누르면 ..

본문

http://hebronstarr.cafe24.com/bbs/write.php?bo_table=board20
이페이지 글을 쓰고 확인을 누르면 정상가동 됩니다...
근데 보시다시피 기록이 남아있는형태로 페이지가 열립니다...

확인을 누르고 나면 기록이 없는상태에서 지금현재 페이지가 열리고 싶은데요..
아래보시면 white.php 와 white.update.php 파일이 지금 현재 이렇게 되어저 있습니다. 어디부분을 수정해야 제가 원하는데로 할수있을까요.. 고수님들 도와주세요.~~

white.php
------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

if ($is_dhtml_editor) {
    include_once("$g4[path]/lib/cheditor4.lib.php");
    echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
    echo cheditor1('wr_content', '100%', '250');
}
/*
성명 name
성별 wr_1
주민등록번호 wr_2
양력음력 wr_3
생년월일 년 월 일 wr_4
연락처 전화, hp wr_6, 7
우편번호 wr_5
주소 wr_subject
직업 wr_8
이메일 wr_email
홈페이지 wr_homepage
납부방법 wr_9
후원금액 wr_10
체                  wr_11
테스트              wr_12
*/

//주민등록번호
$min = explode("-",$write[wr_2]);
$min1  = $min[0];
$min2  = $min[1];

//생년월일
$birth = explode("-",$write[wr_4]);
$birth1  = $birth[0];
$birth2  = $birth[1];
$birth3  = $birth[2];

//우편번호
$ext5 = explode("-",$write[wr_5]);
$ext5_00  = $ext5[0];$ext5_01  = $ext5[1];

//전화번호
$tel = explode("-",$write[wr_6]);
$tel1  = $tel[0];
$tel2  = $tel[1];
$tel3  = $tel[2];

//휴대전화
$hp = explode("-",$write[wr_7]);
$hp1  = $hp[0];
$hp2  = $hp[1];
$hp3  = $hp[2];

?>

<script type="text/javascript">
function onlyNumber(obj) {
if(isNaN(obj.value)){
alert('숫자만 입력해 주세요');
obj.value=obj.value.substr(0,obj.value.length-1)
}
}
</script>
<style type="text/css">
<!--
.style1 {
font-size: 12px;
color: #FF0000;
}
.style2 {color: #FFFFFF}
.style3 {
color: #FFFF00;
font-weight: bold;
}
.style4 {
color: #FF0000;
font-weight: bold;
}
-->
.hu_tb tr td table td { border:none; }
</style>


<div style="height:14px; line-height:1px; font-size:1px;">&nbsp;</div>

<style type="text/css">
.hu_tb{width:100%; border:2px  border-collapse:collapse;}
.hu_tb td{border:1px solid #cdcdcd; padding:5px;}
.write_head { width:100px; height:30px; padding-right:15px; text-align:right; color:#363636; background-color:#efefef;}
.field { }
.ed{border:1px solid #ddd; height:18px;}
</style>

<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>

<form name="fwrite" method="post" onsubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=null>
<input type=hidden name=w        value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id    value="<?=$wr_id?>">
<input type=hidden name=sca      value="<?=$sca?>">
<input type=hidden name=sfl      value="<?=$sfl?>">
<input type=hidden name=stx      value="<?=$stx?>">
<input type=hidden name=spt      value="<?=$spt?>">
<input type=hidden name=sst      value="<?=$sst?>">
<input type=hidden name=sod      value="<?=$sod?>">
<input type=hidden name=page    value="<?=$page?>">

<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td height="30" valign="top">

<h3></h3>

<table class="hu_tb">

<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
    $option = "";
    if ($is_notice) {
        $option .= "<input type=checkbox name=notice value='1' $notice_checked>공지&nbsp;";
    }
/*
    if ($is_html) {
        if ($is_dhtml_editor) {
            $option_hidden .= "<input type=hidden value='html1' name='html'>";
        } else {
            $option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span>&nbsp;";
        }
    }
*/
    if ($is_secret) {
        if ($is_admin || $is_secret==1) {
            $option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span>&nbsp;";
        } else {
            $option_hidden .= "<input type=hidden value='secret' name='secret'>";
        }
    }
   
    if ($is_mail) {
        $option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기&nbsp;";
    }
}

echo $option_hidden;
if ($option) {
?>
<tr>
    <td width="91" class=write_head>옵 션</td>
    <td width="359"><?=$option?></td></tr>
<? } ?>

<? if ($is_category) { ?>
<tr>
    <td class=write_head>분 류</td>
    <td><select name=ca_name required itemname="분류"><option value="">선택하세요<?=$category_option?></select></td></tr>

<? } ?>

<? if ($is_name) { ?>
<!--
<tr>
  <td style="width:120px;" class="write_head"><p>Message Category&#13;</p></td>
  <td><input name="wr_8" class='ed' value="<?=$write[wr_8]?>" size="43" itemname="직업" /></td>
</tr>
-->
<tr>
    <td bgcolor="EFEFEF" style="width:120px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name</td>
    <td><input class='ed' maxlength=20 size=15 name=wr_name itemname="Name" required value="<?=$name?>"></td>
</tr>

<? } else {  ?>
<tr>
    <td class=write_head>Name</td>
    <td><input class='ed' maxlength=20 size=15 name=wr_name itemname="Name" required value="<?=$member[mb_name]?>"></td></tr>

<? } ?>
<!--<? if ($is_password) { ?>
<tr>
    <td class=write_head>Password</td>
    <td><input class='ed' type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td></tr>
<tr>-->
  <td class="write_head">Title</td>
  <td><input name="wr_subject" class="ed" id="wr_subject" style="width:60%;"  value="<?=$write[wr_subject]?>" itemname="Title" />  </td>
</tr>
<!--
<tr>
  <td class="write_head">Company</td>
  <td><input class='ed' name="wr_12" itemname="테스트" value="<?=$write[wr_12]?>" /></td>
</tr>
-->
<tr>
  <td class="write_head"><p>Telephone&#13;</p></td>
  <td><input class='ed' name="wr_13" itemname="애" value="<?=$write[wr_13]?>" /></td>
</tr>
<tr>
  <td height="26" class="write_head">E-mail</td>
  <td><input class='ed' maxlength="100" size="43" name="wr_email" email="email" required="required" itemname="E-mail" value="<?=$member[mb_email]?>" /></td>
</tr>
<tr>
  <td colspan="2" align="center" valign="bottom" bgcolor="#CCCCCC"><div>Current Office </div></td>
</tr>
<tr>
  <td class="write_head">Location</td>
  <td><table cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td><input type="checkbox" name="wr_22" itemname="Seoul"  value="Seoul" <?if($write[wr_22] == "Seoul") echo "checked"?> />
        Seoul </td>
      <td><input type="checkbox" name="wr_23" itemname="Kuala Lumpur"  value="Daegu" <?if($write[wr_23] == "Kuala Lumpur") echo "checked"?> />
        Daegu</td>
      <td><input type="checkbox" name="wr_24" itemname="Jakarta"  value="Kuala Lumpur" <?if($write[wr_24] == "Jakarta") echo "checked"?> />
        Kuala Lumpur </td>
      <td><input type="checkbox" name="wr_25" itemname="Hanoi"  value="Jakarta" <?if($write[wr_25] == "Hanoi") echo "checked"?> />
        Jakarta</td>
    </tr>
  </table></td>
</tr>
<tr>
  <td class="write_head">Position</td>
  <td><table cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td><input type="checkbox" name="wr_36" itemname="Research Assistant"  value="Research Assistant" <?if($write[wr_36] == " Research Assistant") echo "checked"?> />
        Research Assistant</td>
      <td><input type="checkbox" name="wr_37" itemname="Business Analyst"  value="Business Analyst" <?if($write[wr_37] == "Business Analyst") echo "checked"?> />
        Business Analyst </td>
      <td><input type="checkbox" name="wr_38" itemname="Associate"  value="Associate" <?if($write[wr_38] == "Associate") echo "checked"?> />
        Associate</td>
      <td><input type="checkbox" name="wr_9" itemname="Senior"  value="Senior" <?if($write[wr_9] == "Senior") echo "checked"?> />
        Senior</td>
      <td><input type="checkbox" name="wr_19" itemname="Director"  value="Director" <?if($write[wr_19] == "Director") echo "checked"?> />
        Director</td>
      <td><input type="checkbox" name="wr_21" itemname="Partner"  value="Partner" <?if($write[wr_21] == "Partner") echo "checked"?> />
        Partner</td>


    </tr>
  </table>
      <label></label></td>
</tr>
<tr>
  <td colspan="2" align="center" valign="bottom" bgcolor="#CCCCCC"><div>Applying Office </div></td>
  </tr>
<tr>
  <td class="write_head">Location</td>
  <td>
 
 
 
  <table cellpadding="0" cellspacing="0" border="0">
  <tr>
  <Td><input type="checkbox" name="wr_26" itemname="Seoul"  value="Seoul" <?if($write[wr_26] == "Seoul") echo "checked"?> />
Seoul </Td>
  <Td><input type="checkbox" name="wr_27" itemname="Daegu"  value="Daegu"  <?if($write[wr_27] == "Daegu") echo "checked"?> />
Daegu</Td>
  <Td><input type="checkbox" name="wr_39" itemname="Kuala Lumpur"  value="Kuala Lumpur" <?if($write[wr_39] == "Kuala Lumpur") echo "checked"?> />
Kuala Lumpur </Td>
  <Td><input type="checkbox" name="wr_40" itemname="Jakarta"  value="Jakarta"  <?if($write[wr_40] == "Jakarta") echo "checked"?> />
Jakarta</Td>
  </tr>
  </table>  </td>
</tr>


<tr>
  <td class="write_head">Position</td>
  <td> 
  <table cellpadding="0" cellspacing="0" border="0">
  <tr>
 


  <td><input type="checkbox" name="wr_41" itemname="Research Assistant"  value="Research Assistant" <?if($write[wr_41] == "Research Assistant") echo "checked"?> />
Research Assistant </td>
  <td><input type="checkbox" name="wr_31" itemname="Business Analyst"  value="Business Analyst" <?if($write[wr_31] == "Business Analyst") echo "checked"?> />
Business Analyst </td>
  <td><input type="checkbox" name="wr_32" itemname="Associate"  value="Associate" <?if($write[wr_32] == "Associate") echo "checked"?> />
Associate</td>
  <td><input type="checkbox" name="wr_42" itemname="Senior"  value="Senior" <?if($write[wr_42] == "Senior") echo "checked"?> />
Senior</td>
  <td><input type="checkbox" name="wr_34" itemname="Director"  value="Director" <?if($write[wr_34] == "Director") echo "checked"?> />
Director</td>
  <td><input type="checkbox" name="wr_35" itemname="Partner"  value="Partner" <?if($write[wr_35] == "Partner") echo "checked"?> />
Partner</td>
  </tr>
  </table>
        <label></label></td>
</tr>


<? } ?>


<? if ($is_email) { ?>
<? } else {  ?>

<? } ?>

<? if ($is_homepage) { ?>

<? } ?>


<? if ($is_guest) { ?>

<? } ?>
</table>



</td>
</tr></table>
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>

<h3 class="font_nanum" style="color:#336699;"></h3>

<table class="hu_tb">


<? if ($is_guest) { ?>

<tr>
  <td class="write_head"><p>Comments</p></td>
  <td style='padding:5px 0 5px 5px;'><? if ($is_dhtml_editor) { ?>
      <?=cheditor2('wr_content', $content);?>
      <? } else { ?>
      <textarea id="wr_content" name="wr_content" class="tx" style='width:90%; word-break:break-all; border:1px solid #ccc;' rows="5" itemname="내용"
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?>
  </textarea>
      <? if ($write_min || $write_max) { ?>
    <script language="JavaScript" type="text/javascript"> check_byte('wr_content', 'char_count'); </script>
    <?}?>
      <? } ?>  </td>
</tr>
<tr>
  <td class="write_head"><table cellpadding="0" cellspacing="0">
    <tr>
      <td class="write_head" style="padding-top:10px; line-height:20px;"> Attachment<br />
            <span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif" /></span> <span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif" /></span> </td>
    </tr>
  </table></td>
  <td style='padding:5 0 5 0;'><table id="variableFiles" cellpadding="0" cellspacing="0">
  </table>
      <?// print_r2($file); ?>
      <script language="JavaScript" type="text/javascript">
        var flen = 0;
        function add_file(delete_code)
        {
            var upload_count = <?=(int)$board[bo_upload_count]?>;
            if (upload_count && flen >= upload_count)
            {
                alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
                return;
            }

            var objTbl;
            var objRow;
            var objCell;
            if (document.getElementById)
                objTbl = document.getElementById("variableFiles");
            else
                objTbl = document.all["variableFiles"];

            objRow = objTbl.insertRow(objTbl.rows.length);
            objCell = objRow.insertCell(0);

            objCell.innerHTML = "<input type='file' class='ed' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
            if (delete_code)
                objCell.innerHTML += delete_code;
            else
            {
                <? if ($is_file_content) { ?>
                objCell.innerHTML += "<br><input type='text' class='ed' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
                <? } ?>
                ;
            }

            flen++;
        }

        <?=$file_script; //수정시에 필요한 스크립트?>

        function del_file()
        {
            // file_length 이하로는 필드가 삭제되지 않아야 합니다.
            var file_length = <?=(int)$file_length?>;
            var objTbl = document.getElementById("variableFiles");
            if (objTbl.rows.length - 1 > file_length)
            {
                objTbl.deleteRow(objTbl.rows.length - 1);
                flen--;
            }
        }
        </script></td>
</tr>
<tr>
  <td colspan="2" align="center"  style4>&nbsp;</td>
  </tr>
<!--<tr>
  <td class="write_head"><table cellpadding="0" cellspacing="0">
    <tr>
      <td class="write_head" style="padding-top:10px; line-height:20px;"> 파일첨부<br />
            <span onclick="add_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_add.gif" /></span> <span onclick="del_file();" style="cursor:pointer;"><img src="<?=$board_skin_path?>/img/btn_file_minus.gif" /></span> </td>
    </tr>
  </table></td>
  <td style='padding:5 0 5 0;'><table id="variableFiles" cellpadding="0" cellspacing="0">
  </table>
      <?// print_r2($file); ?>
      <script language="JavaScript" type="text/javascript">
        var flen = 0;
        function add_file(delete_code)
        {
            var upload_count = <?=(int)$board[bo_upload_count]?>;
            if (upload_count && flen >= upload_count)
            {
                alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
                return;
            }

            var objTbl;
            var objRow;
            var objCell;
            if (document.getElementById)
                objTbl = document.getElementById("variableFiles");
            else
                objTbl = document.all["variableFiles"];

            objRow = objTbl.insertRow(objTbl.rows.length);
            objCell = objRow.insertCell(0);

            objCell.innerHTML = "<input type='file' class='ed' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
            if (delete_code)
                objCell.innerHTML += delete_code;
            else
            {
                <? if ($is_file_content) { ?>
                objCell.innerHTML += "<br><input type='text' class='ed' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
                <? } ?>
                ;
            }

            flen++;
        }

        <?=$file_script; //수정시에 필요한 스크립트?>

        function del_file()
        {
            // file_length 이하로는 필드가 삭제되지 않아야 합니다.
            var file_length = <?=(int)$file_length?>;
            var objTbl = document.getElementById("variableFiles");
            if (objTbl.rows.length - 1 > file_length)
            {
                objTbl.deleteRow(objTbl.rows.length - 1);
                flen--;
            }
        }
        </script></td>
</tr>-->
<tr>
    <td class=write_head><img id='kcaptcha_image' border='0' width=100 height=40 onclick="imageClick();" style="cursor:pointer;" title="글자가 잘안보이는 경우 클릭하시면 새로운 글자가 나옵니다."></td>
    <td><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required>&nbsp;&nbsp;<span style="color:#ff0000;">For added security - please enter the verification code hidden in the image.</span></td>
</tr>

<? } ?>
</table>



<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td width="100%" align="center" valign="top" style="padding-top:30px;">
        <input type=image id="btn_submit" src="<?=$board_skin_path?>/img/submit.jpg" border=0 accesskey='s'>&nbsp;
</td>
</tr>
</table>

</td></tr></table>
</form>
<div style="height:20px;"></div>

<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">

<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
    echo "
    if (typeof(document.fwrite.ca_name) != 'undefined')
    {
        document.fwrite.ca_name.options.length += 1;
        document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
        document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
    }";
}
?>

with (document.fwrite)
{
    if (typeof(wr_name) != "undefined")
        wr_name.focus();
    else if (typeof(wr_subject) != "undefined")
        wr_subject.focus();
    else if (typeof(wr_content) != "undefined")
        wr_content.focus();

    if (typeof(ca_name) != "undefined")
        if (w.value == "u")
            ca_name.value = "<?=$write[ca_name]?>";
}

function html_auto_br(obj)
{
    if (obj.checked) {
        result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
        if (result)
            obj.value = "html2";
        else
            obj.value = "html1";
    }
    else
        obj.value = "";
}

function fwrite_submit(f)
{


    if (document.getElementById('char_count')) {
        if (char_min > 0 || char_max > 0) {
            var cnt = parseInt(document.getElementById('char_count').innerHTML);
            if (char_min > 0 && char_min > cnt) {
                alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
                return false;
            }
            else if (char_max > 0 && char_max < cnt) {
                alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
                return false;
            }
        }
    }

    <?
    if ($is_dhtml_editor) echo cheditor3('wr_content');
    ?>

    if (document.getElementById('tx_wr_content')) {
        if (!ed_wr_content.outputBodyText()) {
            alert('내용을 입력하십시오.');
            ed_wr_content.returnFalse();
            return false;
        }
    }

    var subject = "";
    var content = "";
    $.ajax({
        url: "<?=$board_skin_path?>/ajax.filter.php",
        type: "POST",
        data: {
            "subject": f.wr_subject.value,
            "content": f.wr_content.value
        },
        dataType: "json",
        async: false,
        cache: false,
        success: function(data, textStatus) {
            subject = data.subject;
            content = data.content;
        }
    });

    if (subject) {
        alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
        f.wr_subject.focus();
        return false;
    }

    if (content) {
        alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
        if (typeof(ed_wr_content) != "undefined")
            ed_wr_content.returnFalse();
        else
            f.wr_content.focus();
        return false;
    }

    if (typeof(f.wr_key) != 'undefined') {
        if (hex_md5(f.wr_key.value) != md5_norobot_key) {
            alert('자동등록방지용 글자가 제대로 입력되지 않았습니다.');
            f.wr_key.select();
            f.wr_key.focus();
            return false;
        }
    }

    document.getElementById('btn_submit').disabled = true;
<?// if ($member['mb_level'] >= 7) { ?>
  // document.getElementById('btn_list').disabled = true;
<? //} ?>

    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
    else
        echo "f.action = './write_update.php';";
    ?>
   
    return true;

}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript"> window.onload=function() { drawFont(); } </script>





write_update.skin
-----------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/lib/mailer.lib.php");

//받는 이메일 설정
$to_email = $wr_email;

//보내는 사람
$from_email  = "*** 개인정보보호를 위한 이메일주소 노출방지 ***";

if ($to_email) {

   
    $title = "Thanks for your apply!";
   
    $body = "
    <table width='700' border='0'>
  <tr>
    <td><img src='http://hebronstarr.cafe24.com/images/aaa.jpg' width='700' height='170' /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><p>Thank you for your interest Career Path Program at Hebronstar.</p>

<p>Your information, including your resume, is now within our system and available for review by our team of professional</p>
<p>recruiters and hiring managers. Should you meet our position requirements someone from our team will <p>follow-up with you.

<p>It is the policy of Hebronstar to ensure equal employment opportunity without discrimination or harassment on the basis of</p>
<p>race, color, religion, age, gender, gender identity, sexual orientation, national origin citizenship, disability, marital and civil</p>
<p>partnership/union status,pregnancy (including unlawful discrimination on the basis of a legally protected pregnancy / maternity leave), veteran status or any other characteristic protected by law. </p>

</td>
  </tr>
</table>
</body>
</html>
   
    ";
   
    mailer($from_name, $from_email, $to_email, $title, $body, 1);

    echo "
    <SCRIPT type='text/javascript'>
        alert('메일이 발송되었습니다.');
    </SCRIPT> ";
}



/* if($w != 'u') {
    echo "<script language='JavaScript'>alert('감사합니다.');history.go(-1);</script>";
} */

//주민등록번호
$wr_2 = "$min1-$min2";

//전화번호
$wr_4 = "$birth1-$birth2-$birth3";

//전화번호
$wr_5 = "$ext5_00-$ext5_01";

//전화번호
$wr_6 = "$tel1-$tel2-$tel3";

//휴대전화
$wr_7 = "$hp1-$hp2-$hp3";

//전화번호2
$wr_16 = "$tell1-$tell2-$tell3";


$wr_20 = "$six01|$six02|$six03";

$wr_29 = "$telll1-$telll2-$telll3";

$wr_28 = "$t1-$t2-$t3";

$wr_30 = "$aa1-$aa2-$aa3";


$wr_33 = "$bb1-$bb2-$bb3";


$sql_update =
" wr_2='$wr_2',
  wr_4='$wr_4',
  wr_5='$wr_5',
  wr_6='$wr_6',
  wr_7='$wr_7',
  wr_11='$wr_11',
  wr_12='$wr_12',
  wr_13='$wr_13',
  wr_14='$wr_14',
  wr_15='$wr_15',
  wr_16='$wr_16',
  wr_17='$wr_17',
  wr_18='$wr_18',
  wr_19='$wr_19',
  wr_20='$wr_20',
  wr_21='$wr_21',
  wr_22='$wr_22',
  wr_23='$wr_23',
  wr_24='$wr_24',
  wr_25='$wr_25',
  wr_26='$wr_26',
  wr_27='$wr_27',
  wr_28='$wr_28',
  wr_29='$wr_29',
  wr_30='$wr_30',
  wr_31='$wr_31',
  wr_32='$wr_32',
  wr_33='$wr_33',
  wr_34='$wr_34',
  wr_35='$wr_35',
  wr_36='$wr_36',
  wr_37='$wr_37',
  wr_38='$wr_38',
  wr_39='$wr_39',
  wr_40='$wr_40',
  wr_41='$wr_41', 
  wr_42='$wr_42'
  ";
 
 
sql_query(" update $write_table set $sql_update where wr_id = '$wr_id' ");

//if(!$member[mb_id]) {
echo "<script language='JavaScript'>alert('Thank you. 정상적으로 신청되었습니다..');history.go(-1);</script>";
//alert("Thank you. You have successfully apply.", $g4[path]);
//}
?>

댓글 전체

확인을 누르고 나면 기록이 없는상태에서 지금현재 페이지가 열리고 싶은데요..

이게 무슨 말씀이신지....
다시 가입폼으로 넘어가고 싶다는 말씀이신가요?
그렇다면 write_update.skin 의 맨 아랫부분에
history.go(-1); 을 document.location.href='/해당경로/white.php'; 또는 location.href='/해당경로/white.php'; 이렇게 넣으시면 됩니다.

지금 하신 방법은 저장하신 후에 다시 되돌아가기를 해서 그렇습니다.
아래 스크립트를 지우시구요..
write_update.skin.php파일에

// 글쓰기 폼으로 이동.
alert("등록완료.", "./write.php?bo_table=$bo_table" . $qstr);

이렇게 넣어보세요..
그럼 글 쓰신 후 등록완료 팝업메시지가 나오고 다시 글쓰기 화면으로 이동됩니다.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT