³ë¹«Çö ´ëÅë·É ¹è³Ê
  ±è¼ºÅÂÀÇ Tech Tips(Linux, PHP, Apache, DBMS, Mobile)
  http://www.supersky.pe.kr  
¾È³çÇϽʴϱî? ±è¼ºÅÂÀÔ´Ï´Ù.
Linux, Apache, PHP, Mysql, Mobile °ü·Ã Tech Tips Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.
 
<<   2024 Dec   >>
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930311234
1880409 2324
  
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 ...  46  47  48  49  50  51  52  53  54 ...  162     next >>