폼 내용을 입력하고 확인 메시지를 클릭한 후 메인으로 가게 하기 > 그누4 질문답변

그누4 질문답변

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

폼 내용을 입력하고 확인 메시지를 클릭한 후 메인으로 가게 하기 정보

폼 내용을 입력하고 확인 메시지를 클릭한 후 메인으로 가게 하기

본문

안녕하세요?
어디선가 본 것 같은데 아무리 검색해도 찾지 못하겠습니다.
 
바다폼을 사용하려 하는데 내용 입력후 확인 메시지를 클릭하면 그누보드메인으로 가는데, 그걸 홈 메인(index.html)로
가게 하려면 어디를 어떻게 고쳐야 하나요?
 
<윗부분 생략>
.
.
 
<? } ?>
</table></td>
</tr></table>
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td height="10" background="<?=$board_skin_path?>/img/write_down_bg.gif"></td>
</tr>
<tr>
    <td align="center" valign="top">
        <input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s' onfocus='this.blur()'>   <a href="#" onclick="history.go(0)" onfocus='this.blur()'><img id="btn_list" src='<?=$board_skin_path?>/img/btn_write2.gif' border='0'></a>
<?if($is_admin){?>
        <a href="./board.php?bo_table=<?=$bo_table?>" onfocus='this.blur()'><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a>
<?}?>
</td>
</tr>
</table>
</form>
 
이 부분인데 다른 곳하고는 틀린 것 같습니다.
감사합니다.
  • 복사

댓글 전체

빠른 답변 감사합니다.
위 내용을 어디에 삽입해야 하는지요?
아랫부분 어디쯤일 것 같은데, 잘 모르겠네요.
if ....구문 아래에 넣어야 하나요? 자세히 알려주시면 감사하겠습니다.


            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 height=1 bgcolor=#EEEEEE></td></tr>
<? } ?>


<? if ($is_norobot) { ?>
<tr>
    <td style='padding-left:20px; height:30px;'><?=$norobot_str?></td>
    <td style='padding-left:5px;'><input class=my_input type=input size=10 name=wr_key itemname="protection" required>&nbsp;&nbsp;* <font color="red">red characters </font> only</td>
</tr>
<? } ?>

</table></td>
</tr></table>

<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td height="10" background="<?=$board_skin_path?>/img/write_down_bg.gif"></td>
</tr>
<tr>
    <td align="center" valign="top">
        <input type=image id="btn_submit" src="<?=$board_skin_path?>/img/btn_write.gif" border=0 accesskey='s' onfocus='this.blur()'> &nbsp; <a href="#" onclick="history.go(0)" onfocus='this.blur()'><img id="btn_list" src='<?=$board_skin_path?>/img/btn_write2.gif' border='0'></a>
<?if($is_admin){?>
        <a href="./board.php?bo_table=<?=$bo_table?>" onfocus='this.blur()'><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a>
<?}?>
</td>
</tr>
</table>

</form>

<script language="javascript">

function onlyNumber(objtext1){
var inText = objtext1.value;
var ret;

for (var i = 0; i < inText.length; i++) {
ret = inText.charCodeAt(i);
if (!((ret > 47) && (ret < 58))) {
alert("number only");
objtext1.value = "";
objtext1.focus();
return false;
}
}
if (objtext1.value.length==6) {
document.form1.RNI_idnum2.focus() ;
}
return true;
}

with (document.fwrite) {
    if (typeof(wr_1) != "undefined")
        wr_1.focus();
    else 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("auto line change?\n\nusing <br> tag");
        if (result)
            obj.value = "html2";
        else
            obj.value = "html1";
    }
    else
        obj.value = "";
}

function fwrite_check(f) {
    var s = "";
    if (s = word_filter_check(f.wr_subject.value)) {
        alert("prohibited wording ('"+s+"') in the subject");
        return;
    }

    if (s = word_filter_check(f.wr_content.value)) {
        alert("prohibited wording ('"+s+"') in the contents");
        return;
    }

    if (char_min > 0 || char_max > 0) {
        var cnt = parseInt(document.getElementById('char_count').innerHTML);
        if (char_min > 0 && char_min > cnt) {
            alert("more than "+char_min+" characters.");
            return;
        }
        else if (char_max > 0 && char_max < cnt) {
            alert("less than "+char_max+" characters.");
            return;
        }
    }

    if (typeof(f.wr_key) != "undefined") {
        if (hex_md5(f.wr_key.value) != md5_norobot_key) {
            alert("red characters only for protection");
            f.wr_key.focus();
            return;
        }
    }

    <?
    if ($is_dhtml_editor) {
        echo cheditor3('wr_content');
        echo "if (!document.getElementById('wr_content').value) { alert('contents.'); return; } ";
    }
    ?>

    document.getElementById('btn_submit').disabled = true;
    document.getElementById('btn_list').disabled = true;

    f.action = "./write_update.php";
    f.submit();
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    drawFont();
}
</script>
© SIRSOFT
현재 페이지 제일 처음으로