½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 236 | Á¶È¸¼ö 3,677 | µî·ÏÀÏ 2007-08-06 13:04:28

´Ð³×ÀÓ

jzh5188

À̸ÞÀÏ

jiangzhehao1975@hanmail.net

Á¦¸ñ

µµ¿ÍÁÖ¼¼¿°..;; ºÎŹµå¸³´Ï´Ù.
³»¿ë

¾È³çÇϼ¼¿ä. À©µµ¿ì¿¡ iis,mssql ¼³Ä¡ÇÞ½À´Ï´Ù. db»ý¼ºÇÏ°í Å×ÀÌºíµµ »ý¼ºÇÑ »óÅÂÀÔ´Ï´Ù.
ÀÔ·ÂÆûÀ» °£´ÜÇÏ°Ô ¸¸µé¾î¼­ db¿¡ ÀԷ½Ãų·Á±¸ÇÕ´Ï´Ù. ÄÚµå´Â ´ëÃæ¾Æ·¡¿Í°°ÀÌ...

1. ù¹ø°ÆäÀÌÁö:(insert.asp)

<script language="javascript">
<!--
function fcFormCheck()
{
    <% if vsesslv = 99 then %>
    if (f.vmarketoridx.value == "") {
        alert("´ã´çÀÚ¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä");
        f.vmarketoridx.focus();
        return false;
    }
    <% end if %>

    if (f.vName.value == "") {
        alert("À̸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        f.vName.focus();
        return false;
    }

    for (var j = 0; j < f.vName.value.length; j++) {
        if (f.vName.value.charAt(j) == " ") {
            alert("À̸§¿¡´Â °ø¹éÀÌ µé¾î°¡¸é ¾ÈµË´Ï´Ù.");
            f.vName.focus();
            return false;
        } else if (f.vName.value.charAt(j) <= "\u00A1") {
            alert("À̸§Àº Çѱ۸¸ °¡´ÉÇÕ´Ï´Ù.");
            f.vName.focus();
            return false;
        }
    }
/*
    if (!fcCheckJumin()) {
        return false;
    }
*/
    if ((f.vHp1.value.length < 2) || (f.vHp2.value.length < 3) || (f.vHp3.value.length < 4)) {
        alert("ÇÚµåÆù ¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        f.vHp1.value = "";
        f.vHp2.value = "";
        f.vHp3.value = "";
        f.vHp1.focus();
        return false;
    }
/*
    if (f.vCpName.value == "") {
        alert("Á÷Àå¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        f.vCpName.focus();
        return false;
    }

    if ((f.vCpTel1.value.length < 1) || (f.vCpTel2.value.length < 3) || (f.vCpTel3.value.length < 4)) {
        alert("Á÷Àå ÀüÈ­¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        f.vCpTel1.value = "";
        f.vCpTel2.value = "";
        f.vCpTel3.value = "";
        f.vCpTel1.focus();
        return false;
    }
*/

    f.action = "write.asp";
    f.submit();
}
//-->
</script>
<%
vSql = "select * from tbl_member where cn_lv = 11 and CN_active = 1 order by cn_id"
set vRs = vDBConn.execute (vSql)
%>

À§¿¡ ÀÚ¹Ù½ºÅ©¸³Æ®±¸¿ä..¹Ø¿¡ 4ÁÙÀº asp ÄÚµå °°½À´Ï´Ù.;;;

2.µÎ¹øÀçÆäÀÌÁö: (write.asp)

<% if trim(session("sess_idx")) = "" or trim(session("sess_id")) = "" or trim(session("sess_lv")) = "" then %>
    <script language="javascript">
        alert("¼¼¼ÇÀÌ ¸¸·áµÇ¾ú°Å³ª ¿ÜºÎ¿¡¼­´Â Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù.");
        location.replace ("/common/logout.asp");
    </script>
<%
    response.End
end if
%>

<!-- #include virtual="/mgmt/common/dbconn.asp" //-->
.
.
.
.
.
»ý·«....


¹®Á¦: ùÆäÀÌÁöinsert.asp¿¡¼­ À̸§, Á÷Àå¸í, ÀüÈ­¹øÈ£ µîÀ» ÀÔ·ÂÇÏ°í È®ÀÎÇÏ¸é µÎ¹øÀçÆäÀÌÁö write.asp¿¡ °¡¼­ »ç¿ëÀÚ Áï ȸ¿øÀÎÁõÀ» °ÅĨ´Ï´Ù..ÀÎÁõÀÌ È®¸³µÇ¸é ÀԷµȳ»¿ëµéÀÌ db¿¡ µé¾î°¡°ÔµÇÁÒ..¹°·Ð ÀÌ°ÍÀº ·Î±×ÀÎÀÌ µÈ »óÅ׿¡¼­±¸¿ä..±Ùµ¥ Á¦°¡ ¹Ù¶ó´Â°ÍÀº ·Î±×ÀÎÀýÂ÷°¡ ÇÊ¿ä¾øÀÌ Ã¹ÆäÀÌÁö¿¡¼­ ³»¿ëµé Àû¾î³Ö°í È®ÀÎÇÏ¸é ¹Ù·Î db¿¡ µî·ÏµÇ°Ô ÇÒ·Á°í ÇÕ´Ï´Ù. ùÆäÀÌÁö³ª µÎ¹øÀçÆäÀÌÁö¿¡¼­ ÄÚµå¾î¶»°Ô ¼öÁ¤Çϸé ÀÌ ±¸ÇöÀÌ °¡´ÉÇÒ°¡¿ä? ¾Æ´Ï¸é ÀÚµ¿À¸·Î ·Î±×ÀÎµÇ°Ô ÇÏ´Â ¼Ò½º¶óµµ ¾øÀ»°¡¿ä? ;; Áú¹®¤·À» ÀÌÇØÇϽǶõÁö ¸ô°Ù³×¿ä.;;ºÎŹµå¸±°Ô¿©..^^

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
jzh5188 2007-08-06 13:29:14
´ä±Û

¤Ð ¤Ð;;

°Ë¹«Ç÷½Å 2007-08-07 18:24:22
´ä±Û

Àû¾îÁֽŠ2¹ø° ¼Ò½ºÀÇ IF ~ END IF ±îÁö ºÎºÐÀ» ½Ï Áö¿ö¹ö¸®¸é µÇÁö ¾Ê³ª¿ä ;;;;

°Ë¹«Ç÷½Å 2007-08-07 18:25:03
´ä±Û

<% if trim( ¿©±âºÎÅÍ ..
end if %> ±îÁö¿ä »èÁ¦ÇÏ¸é ·Î±×ÀΠüũ ¾ÈÇÏ°í ¹Ù·Î dbconn.asp¸¦ ÀÎÅ©·çµåÈÄ DB¿¡ ÀηµɰŠ°°³×¿ä

ÀÌÀü°Ô½Ã±Û fck ¿¡µðÅÍ À̹ÌÁöº¸±â°¡ ¾ÈµÅ¿ä 2007-08-04 17:10:25
´ÙÀ½°Ô½Ã±Û ^^°¨»çÇÕ´Ï´Ù. fck editor ÇØ°áÇß½À´Ï´Ù. ³Ê¹« °¨»ç 2007-08-07 13:18:20