³ë¹«Çö ´ëÅë·É ¹è³Ê
  ±è¼ºÅÂÀÇ Tech Tips(Linux, PHP, Apache, DBMS, Mobile)
  http://www.supersky.pe.kr  
¾È³çÇϽʴϱî? ±è¼ºÅÂÀÔ´Ï´Ù.
Linux, Apache, PHP, Mysql, Mobile °ü·Ã Tech Tips Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.
 
<<   2024 Nov   >>
S M T W T F S
272829303112
3456789
10111213141516
17181920212223
24252627282930
1858792 1180
  
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 ...  47  48  49  50  51  52  53  54  55 ...  163     next >>