´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net) ÀÔ±¹Çϱâ | ¿µÁÖ±Ç ½Åû
  • ¸öºÎ¸² °ñ¶ó°ñ¶ó
  • ¼Ò±Ù¼Ò±Ù
  • µµ¶õµµ¶õ
  • ³«¼­¸¶´ç
  • Âø°¢ÇѾÆÀÌ
  • ¼ýÀÚ¸ÂÃß±â
  • ¼Ò¿øºô±â
  • ÈçÀû³²±â±â
  • ²Þ¼Ó¿©Çà
  • Ä£±¸Áý ³î·¯°¡±â
  • ¸ðµÎµå¸²´ÔÀÇ È¨
  • î¤éÞ´ÔÀÇ È¨
  • Çö¿ì´ÔÀÇ È¨
  • º°¾ÆÇØ´ÔÀÇ È¨
  • ÇÞ»ì´ÔÀÇ È¨
  • À̳ª´Ï´ÔÀÇ È¨
  • À¯¸®¾Ë´ÔÀÇ È¨
  • ³È³ÈÀÌ´ÔÀÇ È¨
  • ²ÀÁö´ÔÀÇ È¨
  • ´ë¼º´ÔÀÇ È¨
  • ¹®Èñö / 2000-06-26 / ¿ÀÈÄ 6:09:45 / 211.51.20.144
    Á¶È¸¼ö : 103
    [Áú¹®] ¾÷·Îµå ÀԷ°ªÀÌ ³Ñ¾î¿ÀÁö ¾Ê³×¿ä
    > > Á¤¸» Á˼Û...¸ÅÀÏ Áú¹®¸¸ µå¸®´Â±º¿ä...
    > > ´Ù¸§ÀÌ ¾Æ´Ï¶ó ¾Æ·¡ ºÎºÐÀÇ ¹®Á¦´Â ÇØ°áÇß½À´Ï´Ù.±×·±µ¥ °¡Àå Áß¿äÇÑ È­ÀÏ ¾÷·Îµå°¡ µÇÁö ¾Ê´Â±º¿ä.Ȥ½Ã ¹®¹ý »óÀÇ À߸øÀÌ Àִ°ÍÀº ¾Æ´ÑÁö Çؼ­¿ä.
    > > »çÀÌÆ®°¶·°½Ã¸¦ »ç¿ëÇÏ·Á°í¿ä...
    > > ÀԷ°ªÀÌ Çϳªµµ ÀúÀåÀÌ µÇÁö ¾Ê°í ÀÖ¾¹´Ï´Ù.
    > > Ȥ½Ã À߸øµÈ ±¸¹®ÀÌ¶óµµ »ç¿ëÇÏ°ÍÀÎÁö.....
    > >
    > > Response.Buffer=true
    > > Response.Expires=0
    > >
    > > Set Conn=Server.CreateObject("ADODB.Connection")
    > > Conn.Open "DSN=sell;UID=;PWD="
    > >
    > > SQL1 = "SELECT MAX(num) as m FROM myboard" '======>Àǽɰ¡´Â ºÎºÐ
    > > Set rs = Conn.Execute( SQL1 )
    > >
    > > '±ÛÀÇ °íÀ¯¹øÈ£¸¦ ±¸ÇÑ´Ù.
    > > if rs("m") <> 0 then
    > > no = rs("m")+1
    > > else
    > > no = 1
    > > end if
    > >
    > > set UploadForm = Server.CreateObject("SiteGalaxyUpload.Form") '¾÷·Îµå¿ë °´Ã¼¸¦ »ý¼ºÇÑ´Ù.
    > >
    > > upddate=year(now())&"-"&month(now())&"-"&day(now()) 'ÇöÀ糯¥¸¦ ±¸ÇÑ´Ù.
    > >
    > > brandname = UploadForm("brandname") '¸ðµç ÆûÀÇ requestµÈ °ªÀ» ÀÌ·± ½ÄÀ¸·Î ¹Þ´Â´Ù.
    > > brandname = Replace(brandname,"'","''")
    > > brandname = replace(brandname,"<","< ")
    > >
    > > product = UploadForm("product") 'product
    > > product = Replace(product,"'","''")
    > > product = replace(product,"<","< ")
    > >
    > > short = UploadForm("short") 'short product description
    > > short = Replace(short,"'","''")
    > > short = replace(short,"<","< ")
    > >
    > > mcode = UploadForm("mcode") 'mscode
    > > mcode = Replace(mcode,"'","''")
    > > mcode = replace(mcode,"<","< ")
    > >
    > > country = UploadForm("country") 'country of origine
    > > country = Replace(country,"'","''")
    > > country = replace(country,"<","< ")
    > >
    > > specification = UploadForm("specification") 'CountÇ׸ñ ¼¼ºÎÀÚ·á....
    > > specification = Replace(specification,"'","''")
    > > specification = replace(specification,"<","< ")
    > >
    > > filename = UploadForm("filename") 'filename
    > > filename = Replace(filename,"'","''")
    > > filename = replace(filename,"<","< ")
    > >
    > > filesize = UploadForm("filesize") 'filesize:¼ýÀÚ
    > > filesize = Replace(filesize,"'","''")
    > > filesize = replace(filesize,"<","< ")
    > >
    > > company = UploadForm("company") 'company
    > > company = Replace(company,"'","''")
    > > company = replace(company,"<","< ")
    > >
    > > url = UploadForm("url") 'url
    > > url = Replace(url,"'","''")
    > > url = replace(url,"<","< ")
    > >
    > > addre = UploadForm("addre") 'address
    > > addre = Replace(addre,"'","''")
    > > addre = replace(addre,"<","< ")
    > >
    > > contactperson = UploadForm("contactperson") 'contactperson
    > > contactperson = Replace(contactperson,"'","''")
    > > contactperson = replace(contactperson,"<","< ")
    > >
    > > tel = UploadForm("tel") 'tel
    > > tel = Replace(tel,"'","''")
    > > tel = replace(tel,"<","< ")
    > >
    > > fax= UploadForm("fax") 'fax
    > > fax = Replace(fax,"'","''")
    > > fax = replace(fax,"<","< ")
    > >
    > > email= UploadForm("email") 'email
    > > email = Replace(email,"'","''")
    > > email = replace(email,"<","< ")
    > >
    > > packing= UploadForm("packing") 'packing method
    > > packing = Replace(packing,"'","''")
    > > packing = replace(packing,"<","< ")
    > >
    > > payment= UploadForm("payment") ' Terms of payment
    > > payment = Replace(payment,"'","''")
    > > payment = replace(payment,"<","< ")
    > >
    > > fob= UploadForm("fob") 'Fob price and Fob port
    > > fob = Replace(fob,"'","''")
    > > fob = replace(fob,"<","< ")
    > >
    > > markets= UploadForm("markets") 'main export markets
    > > markets = Replace(markets,"'","''")
    > > markets = replace(markets,"<","< ")
    > >
    > >
    > >
    > > pwd = UploadForm("pwd")
    > > pwd = replace(pwd,"<","< ")
    > >
    > >
    > >
    > > strDirectory = "C:\Inetpub\wwwroot\sell\image" 'ÀúÀåÇÒ µð·ºÅ丮 ÁöÁ¤
    > >
    > > filebe = UploadForm("file1")
    > >
    > > if filebe <> "" then
    > > attach_file = UploadForm("file1").FilePath
    > > filename = Mid(attach_file, InstrRev(attach_file, "\") + 1)
    > > ' ¿Ã¸®´Â ÆÄÀÏÀ̸§¸¸ »Ì¾Æ³¿.
    > >
    > > strFile2 = Mid(filename ,1, Instr(filename , ".")-1)
    > > ' ÆÄÀÏ È®ÀåÀÚ¸¦ Á¦°ÅÇÑ ÆÄÀÏ À̸§À» ±¸ÇÔ.
    > > strExt = Mid(filename ,Instr(filename , ".")+1)
    > > 'È®ÀåÀÚ¸¦ ±¸ÇÔ.
    > >
    > > ' ÆÄÀÏ °ü·Ã ±âº» ÄÞÆ÷³ÍÆ®¸¦ »ý¼º
    > > Set fso = CreateObject("Scripting.FileSystemObject")
    > >
    > > bExist = True
    > > ' ¿ì¼± ÆÄÀÏÀÌ Á¸ÀçÇÑ´Ù°í °¡Á¤
    > > strFileNameTemp = strDirectory & filename
    > > ' ÀúÀåÇÒ ÆÄÀÏÀÇ ¿ÏÀüÇÑ À̸§À» ¸¸µê
    > > countfilename = 0
    > > ' ÆÄÀÏÀÌ Á¸ÀçÇÒ °æ¿ì, À̸§ µÚ¿¡ ºÙÀÏ ¼ýÀÚ¸¦ ¼¼ÆÃÇÔ.
    > > While bExist = True ' ¿ì¼± ÀÖ´Ù°í »ý°¢ÇÔ.
    > > If (fso.FileExists(strFileNameTemp )) Then
    > > ' ÆÄÀÏÀÌ ÀÖÀ¸¸é, ¿©±â·Î µé¾î ¿É´Ï´Ù.
    > > 'ÆÄÀÏ À̸§¿¡ ¼ýÀÚ¸¦ ºÙÀÎ »õ·Î¿î ÆÄÀÏ À̸§ »ý¼º
    > > countfilename = countfilename + 1
    > > strFileNameTemp = strDirectory & strFile2 & countfilename & "." & strExt
    > > filename = strFile2 & countfilename & "." & strExt
    > > else
    > > filename = filename
    > > bExist = False
    > > ' ÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾ÊÀ¸¹Ç·Î.
    > > End If
    > > Wend
    > >
    > > Set fso = nothing
    > > ' Scripting.FileSystemObject¸¦ ´Ý¾ÆÁÜ.
    > >
    > > strFileName = strFileNameTemp
    > > ' À§¿¡¼­ ±¸ÇÑ À̸§À» ÀúÀåÇÒ¶§ »ç¿ëÇϱâ À§ÇØ
    > > ' ÀúÀåÇÒ ÆÄÀÏÀ̸§À» ¸¸µê.
    > >
    > > filesize = UploadForm("file1").Size
    > >
    > > UploadForm("file1").SaveAs strFileName
    > > end if
    > -----------------------------------------------------------
    >
    > ÆÄÀÏ ¹Þ´Â°÷ÀÌ µÎ±ºµ¥³ª Àֳ׿ä...
    >
    > filename = UploadForm("filename")
    >
    > filebe = UploadForm("file1")
    >
    > ÀúÀåÀÌ µÇÁö ¾Ê´Â´Ù´Â°Ç ¸ðµç °ªÀÌ INSERT µÇÁö ¾Ê´Â´Ù´Â°Í°¡¿ä?
    >
    > ¾Æ´Ô ÆÄÀÏÀÇ À̸§°ú Å©±â°¡ INSERT µÇÁö ¾Ê´Â´Ù´Â ¸»¾¸À̽Ű¡¿ä?
    >
    > ÀԷ°ªÀÌ ³Ñ¾î¿ÀÁö ¾Ê´Â´Ù¸é
    >
    > ÀÌÀü ÆäÀÌÁö¿¡¼­ºÎÅÍ °ªÀÌ Á¦´ë·Î ³Ñ¾Æ°¡´ÂÁö¸¦ üũÇØ º¸¼Å¾ß µÉ°Í °°³×¿ä...
    >
    > ±×·³...
    >
    -----------------------------------------------------------
    ¸»¾¸ÇϽŠÀÌ°÷Àº filename = UploadForm("filename") Å×ÀÌºí ¸íÀ» ÁöÁ¤ÇÑ °ÍÀä...
    ÇÏ´ÜÀÇinsert intoºÎºÐÀ» È®ÀÎÇغ¸¸é °á°ú °ªÀÌ ¾Æ¹«·± ÀÌ»ó¾øÀÌ ³ª¿À°Åµç¿ä.
    ±×·±µ¥ filename = UploadForm("filename")ÀÌ °ªÀÇ Å½ºÆ®´Â ¾î¶² ¹æ½ÄÀ¸·Î ŽºÆ®¸¦ ÇØ¾ß ÇÏ´ÂÁö¿ä.
    Response.write.asp·Î´Â °ªÀÌ ³ª¿ÀÁö ¾Ê´øµ¥¿ä
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :