½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > JAVASCRIPT > javascript ¼Ò½ºÃ¢°í > Æû °ü·Ã > ¹ÌÀÔ·ÂÆû üũÇϱâ (´ÙÁßÆûüũ) »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
¹ÌÀÔ·ÂÆû üũÇϱâ (´ÙÁßÆûüũ)
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù Æû °ü·Ã
´Ù¿î·Îµå Ƚ¼ö 1107 ȸ
°£´Ü¼³¸í ´Ù¼ö Çʵ尡 À־ ¼Õ½±°Ô ¹ÌÀÔ·ÂÆûÀ» üũÇÏ´Â ½ºÅ©¸³Æ®
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ
ÇØÇÇCGI ÀÔ´Ï´Ù.
ÇÁ·Î±×·¥Á¦À۽à ´Ù¼öÀÇ ÀÔ·ÂÇʵ尡 ÀÖÀ»¶§ ÀÚ¹Ù½ºÅ©¸³Æ®·Î ÇʼöÀÔ·ÂÇ׸ñÀ» Á¤Çϴ°ÍÀº ÂüÀ¸·Î ¹ø°Å·Î¿î ÀÛ¾÷ÀÌÁÒ?
±×·¡¼­ ÀúÈñȸ»ç ÇÁ·ÎÁ§Æ®¿¡ ¸¸µé¾îÁø °£´ÜÇÑ ÀÚ¹Ù½ºÅ©¸³Æ®¸¦ ¿Ã¸³´Ï´Ù.

¾Æ·¡ ¿¹Á¦´Â µÎ°¡Áö ¹æ½ÄÀ¸·Î ¾²Àϼö Àִ°ÍÀÔ´Ï´Ù.
1. Çʵ尡 µ¿ÀÏÇÑ ÆÐÅÏÀ¸·Î ¸¸µé¾îÁø ÇʵåÀÔ·ÂÀ» ¹ÞÀ»¶§ »ç¿ë°¡´É.
2. Çʵ尡 ´Ù¸¥ ÆÐÅÏÀ¸·Î ¸¸µé¾îÁ®µµ ¹è¿­À» ÀÌ¿ëÇؼ­ »ç¿ë°¡´É.

¾Æ·¡ Äڵ忡 name_name ¹è¿­Àº ½ÇÁ¦ Çʵå¸í , name_title ¹è¿­Àº alert µÉ¶§ÀÇ Ãâ·ÂÀ̸§¸íÀÔ´Ï´Ù.
¹Ýº¹ÆÐÅÏÀº q1,q2 ... ó·³ q¼ýÀÚ Çü½ÄÀ¸·Î Çʵ带 ¸¸µé¾îº¸¾Ò½À´Ï´Ù.

ÀÌÁ¦ ÆíÇÏ°Ô html ÀÛ¾÷Çغ¾½Ã´Ù ^^
³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
ÆûÀÌ ÁßøÀ¸·Î ÀÖÀ» °æ¿ì ¾Æ·¡ ó·³ form nameÀ» Á÷Á¢ ÁöÁ¤ÇÏ°í »ç¿ëÇÒ¼ö ÀÖ½À´Ï´Ù.
function CheckForm(theForm)
{

var name_name = new Array("id", "pass", "pass2","name", "joomin1","joomin2","edu_name","email","zip","address1", "address2","hphone1","hphone2","hphone3","phone1","phone2","phone3");
var name_title = new Array("¾ÆÀ̵ð¸¦", "ºñ¹Ð¹øÈ£¸¦", "ºñ¹Ð¹øȣȮÀÎÀ»","¼º¸íÀ»","ÁֹιøÈ£¸¦","ÁֹιøÈ£¸¦","±³À°±â°ü¸íÀ»","À̸ÞÀÏÀ»","¿ìÆí¹øÈ£¸¦","ÁÖ¼Ò¸¦","»ó¼¼ÁÖ¼Ò¸¦","ÇÚµåÆùÀ»","ÇÚµåÆùÀ»","ÇÚµåÆùÀ»","ÀüÈ­¹øÈ£¸¦","ÀüÈ­¹øÈ£¸¦","ÀüÈ­¹øÈ£¸¦");

for(var i in name_name){ //¹è¿­ÀÇ ±æÀ̸¸Å­ ·çÇÁ¸¦ µ·´Ù
tmp_check = eval("theForm."+ name_name[i]);
if (tmp_check.value == ""){
alert(name_title[i] + " ÀÔ·ÂÇϼ¼¿ä.");
tmp_check.focus();
return (false);
}
}
}
2005-07-02 16:45:41
HappyCGI
Âù¼º 39
¹Ý´ë 47
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 47882825 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.