³ë¹«Çö ´ëÅë·É ¹è³Ê
  ±è¼ºÅÂÀÇ Tech Tips(Linux, PHP, Apache, DBMS, Mobile)
  http://www.supersky.pe.kr  
¾È³çÇϽʴϱî? ±è¼ºÅÂÀÔ´Ï´Ù.
Linux, Apache, PHP, Mysql, Mobile °ü·Ã Tech Tips Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.
 
<<   2008 May   >>
S M T W T F S
27282930123
45678910
11121314151617
18192021222324
25262728293031
1758030 147
  
DNS Powered by DNSEver.com
  ++ [Æß] Æûüũ Á¤±Ô½Ä  -  2008/05/23 11:43

Æûüũ Á¤±Ô½Ä¡¡

<form method="post" name="saveForm" action="" onsubmit="return onSubmitProc(this)">
¡¡¾ÆÀ̵ð¡¡:¡¡<input type="text" name="user_id" value="" />
¡¡ÀÌ¡¡¸§¡¡:¡¡<input type="text" name="name" value="" />
¡¡¿¬¶ôó¡¡:¡¡<input type="text" name="phone" value="" />
¡¡<input type="submit" value="Àü¡¡¼Û" />
</form>

<script type='text/javascript' language='javascript'>
//<![CDATA[

var objPattern1 =/^[a-zA-Z]{1}[a-zA-Z0-9_]+$/;¡¡// ù±ÛÀÚ ¿µ¹®, ¿µ,¼ý,_¹® »ç¿ë°¡
var objPattern2 =/^[0-9]+$/;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡// ¼ýÀÚ¸¸ »ç¿ë°¡
var objPattern3 =/^[a-zA-Z]+$/;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡   // ¿µ¹®¸¸ »ç¿ë°¡
var objPattern4 =/^[°¡-힣]+$/;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡// Çѱ۸¸ »ç¿ë°¡
var objPattern5 =/^[°¡-힣a-zA-Z]+$/;¡¡¡¡¡¡¡¡¡¡¡¡ // ÇѱÛ,¿µ¹®¸¸ »ç¿ë°¡
var objPattern6 =/^[°¡-힣a-zA-Z0-9]+$/;¡¡¡¡¡¡¡¡  // ÇѱÛ,¿µ¹®,¼ýÀÚ¸¸ »ç¿ë°¡
var objPattern7 =/^[°¡-힣0-9]+$/;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡// ÇѱÛ,¼ýÀÚ¸¸ »ç¿ë°¡
var objPattern8 =/[°¡-힣]/;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡// ÇѱÛÆ÷ÇÔ

function onSubmitProc( pForm )
{

¡¡if(!objPattern1.test(pForm.user_id.value)) {
¡¡¡¡alert("¾ÆÀ̵ð´Â ù±ÛÀÚ¸¦ ¿µ¹®À¸·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n¿µ¹®,¼ýÀÚ,_¹®ÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
¡¡¡¡pForm.user_id.focus();
¡¡¡¡return false;
¡¡}

}

//]]>
</script>







      << prev     1 ...  4  5  6  7  8  9  10  11  12 ...  14     next >>