{"id":749,"date":"2002-12-27T06:56:55","date_gmt":"2002-12-27T06:56:55","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=749"},"modified":"2002-12-27T06:56:55","modified_gmt":"2002-12-27T06:56:55","slug":"%ec%9c%a0%ec%97%b0%ed%95%9c-%ec%9e%90%eb%8f%99-%ed%8f%bc-%ea%b2%80%ec%82%ac%ea%b8%b0-1","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=749","title":{"rendered":"\uc720\uc5f0\ud55c \uc790\ub3d9 \ud3fc \uac80\uc0ac\uae30"},"content":{"rendered":"<p><script language=\"javascript\"> <br \/>\n\/************************************** <br \/>\n* \uae30\ub2a5: \uacf5\ud1b5 \ub77c\uc774\ube0c\ub7ec\ub9ac <br \/>\n* \uc791\uc131\uc77c: 2002-07-04 <br \/>\n* \uc791\uc131\uc790: \uac70\uce5c\ub9c8\ub8e8 <br \/>\n* \uc218\uc815: \ud558\uadfc\ud638 <br \/>\n* 2\ucc28\uc218\uc815 : \ud2b8\ub860\u2122 <br \/>\n* 2\ucc28\uc218\uc815\uc77c : 2002-09-09<br \/>\n* 3\ucc28\uc218\uc815 : \uc774\ub3d9\ucca0<br \/>\n* 3\ucc28\uc218\uc815\uc77c : 2002-12-24<br \/>\n***************************************<br \/>\n* \uaf2d FORM\uc5d0 name\uc744 \uc815\uc758\ud574 \uc900\ub2e4!!<br \/>\n* <FORM name=\"form1\" onSubmit=\"return chkForm(this)\"><br \/>\n* input tag\uc5d0 \ub300\ud55c \uc124\uba85 <br \/>\n* <input <br \/>\n*\ttype=\"text\" \/\/\uccb4\ud06c\ud560 \ud615\uc2dd <br \/>\n*\tname=\"id\" \/\/\ub118\uc5b4\uac08\uc774\ub984 <br \/>\n*\thname=\"\uc544\uc774\ub514\" \/\/\uacbd\uace0\ucc3d\uc5d0 \ub098\ud0c0\ub0bc \ubb38\uc790\uc5f4 <br \/>\n*\toption=\"regId\" \/\/\uc5b4\ub5a4 \uc815\uaddc\uc2dd\uc73c\ub85c \ucc98\ub9ac\ud560\uc9c0 \uc120\uc5b8 <br \/>\n*\trequired \/\/\uaf2d \uccb4\ud06c\ub97c \uc6d0\ud558\ub294 \ud56d\ubaa9\uc5d0 \uc124\uc815 <br \/>\n* > <br \/>\n***************************************\/<\/p>\n<p>function chkForm(f)<br \/>\n{ <br \/>\n\tvar i,currEl;<\/p>\n<p>\tfor(i = 0; i < f.elements.length; i++){ <br \/>\n\t\tcurrEl = f.elements[i]; <br \/>\n\t\t\/\/\ud544\uc218 \ud56d\ubaa9\uc744 \uccb4\ud06c\ud55c\ub2e4.  <br \/>\n\t\tif (currEl.getAttribute(\"required\") != null) { <br \/>\n\t\t\tif(currEl.type == \"TEXT\" || currEl.type == \"text\" || <br \/>\n\t\t\t   currEl.tagName == \"SELECT\" || currEl.tagName == \"select\" || <br \/>\n\t\t\t   currEl.tagName == \"TEXTAREA\" || currEl.tagName == \"textarea\"){ <br \/>\n\t\t\t\tif(!chkText(currEl,currEl.hname)) return false; <\/p>\n<p>\t\t\t} else if(currEl.type == \"PASSWORD\" || currEl.type == \"password\"){ <br \/>\n\t\t\t\tif(!chkText(currEl,currEl.hname)) return false; <\/p>\n<p>\t\t\t} else if(currEl.type == \"CHECKBOX\" || currEl.type == \"checkbox\"){ <br \/>\n\t\t\t\tif(!chkCheckbox(f, currEl,currEl.hname)) return false; <\/p>\n<p>\t\t\t} else if(currEl.type == \"RADIO\" || currEl.type == \"radio\"){ <br \/>\n\t\t\t\tif(!chkRadio(f, currEl,currEl.hname)) return false; <\/p>\n<p>\t\t\t}<br \/>\n\t\t}<br \/>\n\t\t\/\/ \uc785\ub825 \ud398\ud134\uc744 \uccb4\ud06c\ud55c\ub2e4.<br \/>\n\t\tif(currEl.getAttribute(\"option\") != null && currEl.value.length > 0){ <br \/>\n\t\t\tif(!chkPatten(currEl,currEl.option,currEl.hname)) return false; <br \/>\n\t\t} <br \/>\n\t}<br \/>\n} <\/p>\n<p>function chkPatten(field,patten,name)<br \/>\n{ <br \/>\n\tvar regNum =\/^[0-9]+$\/; <br \/>\n\tvar regPhone =\/^[0-9]{2,3}-[0-9]{3,4}-[0-9]{4}$\/; <br \/>\n\tvar regMail =\/^[_a-zA-Z0-9-]+@[._a-zA-Z0-9-]+.[a-zA-Z]+$\/; <br \/>\n\tvar regDomain =\/^[.a-zA-Z0-9-]+.[a-zA-Z]+$\/; <br \/>\n\tvar regAlpha =\/^[a-zA-Z]+$\/; <br \/>\n\tvar regHost =\/^[a-zA-Z-]+$\/; <br \/>\n\tvar regHangul =\/[\uac00-<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/************************************** * \uae30\ub2a5: \uacf5\ud1b5 \ub77c\uc774\ube0c\ub7ec\ub9ac * \uc791\uc131\uc77c: 2002-07-04 * \uc791\uc131\uc790: \uac70\uce5c\ub9c8\ub8e8 * \uc218\uc815: \ud558\uadfc\ud638 * 2\ucc28\uc218\uc815 : \ud2b8\ub860\u2122 * 2\ucc28\uc218\uc815\uc77c : 2002-09-09 * 3\ucc28\uc218\uc815 : \uc774\ub3d9\ucca0 * 3\ucc28\uc218\uc815\uc77c : 2002-12-24 *************************************** * \uaf2d FORM\uc5d0 name\uc744 \uc815\uc758\ud574 \uc900\ub2e4!! * * input tag\uc5d0 \ub300\ud55c \uc124\uba85 * ***************************************\/ function chkForm(f) { var i,currEl; for(i = 0; i < [&hellip;]\n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-749","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=749"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/749\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}