|
|
|
|
À²¸® / 2001-01-29 / ¿ÀÀü 8:56:19 / 211.195.39.84
Á¶È¸¼ö : 156
|
[Áú¹®] ·±Å¸ÀÓ ¿À·ùa |
CheckValue = replace(CheckValue, ""","'")
¿ä¹®Àå¿¡¼ µû¿ÈÇ¥ ¾²ÀÓÀÌ À߸øµÇ¾ú±º¿ä.
VB ¹®¹ý¿¡¼ÀÇ ¹®ÀÚ¿µéÀº "..." ó·³ Å«µû¿ÈÇ¥(")·Î
¹®ÀÚ¿ÀÇ ¾ÕµÚ¸¦ °¨½ÎÁÝ´Ï´Ù.
±×·±µ¥, ¸¸¾à ¹®ÀÚ¿¾È¿¡ Å«µû¿ÈÇ¥(")°¡ µé¾î°£´Ù¸é
¹®ÀÚ¿ÀÇ ³¡ÀÌ ¾îµðÀÎÁö ¸ðÈ£ÇØÁö±â ¶§¹®¿¡ VB ¿¡¼
´Â ¹®ÀÚ¿³»¿¡¼ÀÇ Å«µû¿ÈÇ¥´Â µÎ¹ø¿¬¼ÓÀ¸·Î ½á¼
È¥¶õÀ» ¸·°í ÀÖ´ä´Ï´Ù.
±×·¡¼ ¿Ã¹Ù¸¥ Ç¥ÇöÀº
CheckValue = replace(CheckValue, """","'")
ÀÌ·¸°Ô ¾²¼Å¾ß ÇÕ´Ï´Ù. ^_^
±×·³, ÁñÇÁ~
> ¿À·ù Çü½Ä:
> Microsoft VBScript ·±Å¸ÀÓ ¿À·ù (0x800A000D)
> Çü½ÄÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù
> /neboard/include/convert.asp, line 15
> ------------------
> ÈåÈå ÁË¼Û Ã¤¿µ´Ô ¶Ç Áú¹®À̳׿ä
> ¾Ö±¸ Àß³ª°¡³ª ½Í´õ´Ï ÀÌ·¸°Ô ÀÚÁÖ ¸·È÷³»¿ä
> Àß³ª°¥¶§ ÀÌ»óÇÏ°Ô ¹Ù½á¾ß Çϴµ¥ È÷È÷^^
> À§ ¿¡·¯¿¡ ´ëÇÑ ´äº¯À» ºÎŹÇØ¿ä ±×¸®°í ¼Ò½º´Â ¾Æ·¡ÀÔ´Ï´Ù.
>
> <%
> ' ¹®ÀÚ¿ º¯È¯ ÇÔ¼ö ¸ðÀ½
>
> ' DB¿¡¼ ÆäÀÌÁö¿¡ Ãâ·ÂÇÒ ¶§
> Function ReverseWord(CheckValue)
> CheckValue = replace(CheckValue, ""","'")
> CheckValue = Replace(CheckValue, Chr(13)&Chr(10)," ")
> CheckValue = Replace(CheckValue, " "," ")
> ReverseWord = CheckValue
> End Function
>
> ' DB¿¡ ÀúÀåÇÒ ¶§ (HTML È¿°ú x)
> Function CheckWord(CheckValue)
> CheckValue = replace(CheckValue, "&" , "&")
> CheckValue = replace(CheckValue, "<", "<")
> CheckValue = replace(CheckValue, ">", ">")
> CheckValue = replace(CheckValue, "'", "''")
> CheckWord = CheckValue
> End Function
>
> ' DB¿¡ ÀúÀåÇÒ ¶§ (HTML È¿°úÁÖ±â)
> Function CheckHTML(CheckValue)
> CheckValue = replace(CheckValue, "&" , "&")
> CheckValue = replace(CheckValue, "'", "''")
> CheckHTML = CheckValue
> End Function
>
> %>
>
>
----------------------------------------------------------- |
|
|
|