ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[±Ð¾Ç] (¹ê¾Ô±MÃD) ¤å¦rÀÉÁpµ¸Ã¯ ¤U½g

[±Ð¾Ç] (¹ê¾Ô±MÃD) ¤å¦rÀÉÁpµ¸Ã¯ ¤U½g

°O¿ý¸ê®Æªº¶¶§Ç

·í§Ú­Ì¨Ï¥ÎOpenTextFile¤èªk¨Ó¶}±ÒÀɮצP®É±N³o­ÓÀɮתº¶}±Ò®æ¦¡³]©w¬°¥i¼g¤Jªº®É­Ô¡A¦³¤@­Ó«Ü¤jªº¯ÊÂI¡A´N¬O·í§Ú­Ì¼g¤J¸ê®Æ®É¬O±qÀɮתº³Ì§ÀºÝ¼g¤J¸ê®Æ¡A¤]´N¬O»¡¡G§Ú­Ì¦b¬d¬Ý¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶¤º®e®É¡A«á¨Ó¥[¤Jªº·N¨£¯d¨¥¸ê®Æ±N·|³Q©ñ¸m¦bºô­¶ªº³Ì«á­±¡A¦n¹³¨S¦³¤H³o¼Ë°µ§a¡IÀ³¸Ó¬O³Ì·sªº¸ê®Æ­nÂ\¦bºô­¶ªº³Ì«eÀY­C¡I©Ò¥H§Ú­Ì¥²¶·¦A§Q¥ÎÀɮת«¥óªºMoveFile(Àɮקó¦W)¤èªk»PDeleteFile(ÀɮקR°£)¤èªk¨Ó§ï¨}§Ú­ÌªºASPµ{¦¡¡C

¨Ï¥ÎMoveFile¤èªk¨Ó§ó§ïÀɮצWºÙ
§ó§ïÀɮצWºÙªºMoveFile¤èªk¼Ð·Ç¥Îªk¡G Àɮת«¥ó¦W.MoveFile¡@ÂÂÀɮתº¯u¹ê§¹¾ã¸ô®|»PÀɦW¡@·sÀɮתº¯u¹ê§¹¾ã¸ô®|»PÀɦW

¨Ò¦p¡G§Ú­Ì±N information.txt ÀɮצWºÙÅÜ§ó¬° oldinfo.txt

10-9.png

¨ä¹êMoveFile¤èªkªº¯u¥¿¥\¯à¬O¡G½Æ»s¤@­ÓÀɮצWºÙ¤£¦P¦ÓÀɮפºªº¸ê®Æ§¹¥þ¬Û¦PªºÀɮסA§Ú­Ì³o»ò°µªº¥Î·N¬O±N·sªº¯d¨¥¬ö¿ý¥ý¼g¨ìinformation.txtÀɮפ¤¡AµM«á¦A±Noldinfo.txtÀɮפºÂªº¯d¨¥¬ö¿ý¸ê®Æ¥[¨ìinformation.txtÀɮפ¤¤º¡A¦p¦¹¤@¨Ó¡A³Ì·sªº¸ê®Æ´N·|Â\¦b¯d¨¥¸ê®Æ°O¿ýÀɪº³Ì«e­±¡A§Ú­Ì¦b¬d¬Ý¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶¤º®e®É¡A³Ì·sªº¯d¨¥¸ê®Æ´N·|¥X²{¦bºô­¶ªº³Ì«eÀY¡C

·íµM¡AFileStstemObjectª«¥ó¤]´£¨Ñ¤F§Ú­Ì¤@­Ó½Æ»sÀɮתº¤èªk¡yCopyFile¡z¡A¦ý¬O³o­Ó¤èªk§Ú­Ì¨Ã¤£¾A¥Î¡A¦]¬°Copy¤èªk¥u¯à§¹¾ãªº±N¤@­ÓÀɮ׽ƻs¦¨¬°¥t¤@­Ó·sªºÀɮסC


¨Ï¥ÎDeleteFile¤èªk¨Ó§R°£ÀÉ®×

  • §R°£ÀɮתºDeleteFile¤èªk¼Ð·Ç¥Îªk¡G

    Àɮת«¥ó¦W.DeleteFile¡@±ý§R°£ªºÀɮׯu¹ê§¹¾ã¸ô®|»PÀɦW¡@­Y¬°°ßŪÀɬO§_§R°£


  • ¬°¦ó§Ú­Ì¥²¶·¨Ï¥ÎDeleteFile¤èªk§R°£ÀɮסA¦]¬°·í§Ú­Ì±N·sªº¯d¨¥¬ö¿ý¥ý¼g¨ìinformation.txtÀɮפ¤¡AµM«á¦A±Noldinfo.txtÀɮפºÂªº¯d¨¥¬ö¿ý¸ê®Æ¥[¨ìinformation.txtÀɮפ¤¤º¡A¦p¦¹¤@¨Ó¡A³Ì·sªº¯d¨¥¸ê®Æ´N¤w¸g¥þ³¡©ñ¸m¦binformation.txtÀɮפ¤¡A©Ò¥H§Ú­Ì´N¥i¥H±N¨S¦³¥Î³Bªºoldinfo.txtÀɮקR°£¤F¡C


  • DeleteFile¤èªkªº¡y­Y¬°°ßŪÀɬO§_§R°£¡z°Ñ¼Æ¦³¨â­Ó¿ï¾Ü¡yTrue¡z»P¡yFalse¡z¡A­Y§Ú­Ìµ¹ªº°Ñ¼Æ­È¬O¡yTrue¡z«h·í§Ú­Ì­n§R°£Àɮ׮ɡA§Y¨ÏÀɮתºÄݩʬO°ßŪªº±N¨Ì¼Ë·|³Q§R°£±¼¡F­Y°Ñ¼Æ­È¬O¡yTrue¡z«h·í§Ú­Ì­n§R°£ªºÀÉ®×¥¦ªºÀÉ®×ÄݩʬO°ßŪªº¸Ü¡AASPµ{¦¡´N±N·|¤Þµo¿ù»~¡C³o­Ó°Ñ¼Æ§Ú­Ì¤]¥i¥H¬Ù²¤¤£¶ñ¡A­Y¤£¶ñ«h¹w³]­È¬°¡yFalse¡z¡C

    10-10.png
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

·N¨£¯d¨¥µ²ªGºô­¶
ÁÙ°O±o§Ú­Ì¦b¬ö¿ý¥H¤Î³B²z¯d¨¥ªºASPµ{¦¡¡yhandel.asp¡z¤¤«ü©w­n±N¦X¨Ö«áªº³Ì·s¯d¨¥¸ê®Æ»Pªº·N¨£¯d¨¥¸ê®Æ¡yÂà¦V¡z¿é¥X¨ì¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶¡ymessage.asp¡z¤¤¶Ü¡A¨S¿ù¡A§Ú­Ì´N¬O­n¨Ó»s§@©Ó±µ¨Ã¥B±N·N¨£¯d²´¸ê®ÆÅã¥Ü¥X¨Óªº¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶¡ymessage.asp¡z¡C

      ¡@¦]¬°§Ú­Ì¦bASPµ{¦¡¡yhandel.asp¡z¤¤¤w¸g¥ý±N·N¨£¯d¨¥¸ê®ÆÂà´«¬°HTML®æ¦¡¤F¡A¦P®É§Ú­ÌÁÙ¦bµ{¦¡¤¤«ü©w±N¦X¨Ö«áªº³Ì·s¯d¨¥¸ê®Æ»Pªº·N¨£¯d¨¥¸ê®Æ¡yÂà¦V¡z¿é¥X¨ì¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶¡ymessage.asp¡z¤¤¡A¦]¦¹§Ú­Ì¦b»s§@message.aspªº®É­Ô¥u­n±Nºô­¶ªº§e²{¥DÅé³]­p¥X¨Ó§Y¥i¡A¦Ü©ó¨º¨Ç·N¨£¯d¨¥¸ê®Æ¥u­n§Q¥Î¤U¦C³o¬q²µuªºµ{¦¡±Ô­z§â¥¦³sµ²¥]§t¶i¨Óºô­¶¤¤Åã¥Ü§Y¥i¡G
  1. <!--#include file="information.txt" -->
½Æ»s¥N½X
10-16.png

¨ì¦¹¡A§Ú­Ìªººô¸ô®aªøÁpµ¸Ã¯¤w¸g¥þ³¡§¹¦¨¤F¡C
10-17.png
  1. <HTML>
  2. <HEAD><TITLE>ºô¸ô®aªøÁpµ¸Ã¯</TITLE>
  3. <meta content="text/html; charset=big5">
  4. </HEAD><BODY>
  5. <H2 ALIGN=CENTER>ºô¸ô®aªøÁpµ¸Ã¯</h2>
  6. <hr size="1">

  7. <!--#include file="information.txt" -->

  8. <hr size="1">
  9. <CENTER><A HREF="issue.asp">¶ñ¼g®aªøÁpµ¸Ã¯</A></CENTER><P>
  10. </BODY>
  11. </HTML>
½Æ»s¥N½X
(¹ê¾Ô±MÃD) ¤å¦rÀÉÁpµ¸Ã¯ §¹¾ã½d¨ÒÀ£ÁYÀÉ: guest.rar (2.3 KB)
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

¯d¨¥·N¨£¸ê®ÆÂà¦V¿é¥X
«á§¹¦¨¤F³Ì·sªº·N¨£¯d¨¥¸ê®Æ¯d¨¥·N¨£¸ê®Æ»P­ì¥»¦s¦b©ó¯d¨¥¬ö¿ý¸ê®ÆÀɮפºªºÂ·N¨£¯d¨¥¸ê®Æªº¦X¨Ö»P¦^¦s¯d¨¥¬ö¿ý¸ê®ÆÀɮתº°Ê§@«á¡A§Ú­ÌASPµ{¦¡ªº¼¶¼g¤]±Nªñ§ÀÁn¡A²{¦b³Ì«á¤@­Ó°Ê§@´N¬O±N³o¨Ç¦X¨Ö«áªº³Ì·s¯d¨¥¸ê®Æ»Pªº·N¨£¯d¨¥¸ê®Æ¡yÂà¦V¡z¿é¥X¨ì¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶¡ymessage.asp¡z¤¤¡C

handel.asp
  1. <%
  2. ' Ū¨ú·N¨£µoªíªí³æºô­¶¤¤ªº¦UÄæ¦ìªº¸ê®Æ
  3. name = Request("name")
  4. email = Request("email")
  5. subject = Request("subject")
  6. textmemo = Request("textmemo")
  7. ' Àˬd¦UÄæ¦ì¬O§_ªÅ¥Õ¨S¦³¶ñ¼g¸ê®Æ
  8. If name = "" Or email = "" Or subject = "" Or _
  9. textmemo = "" Then
  10.    Response.Write "±z¦³Äæ¦ìªÅ¥Õ¨S¦³¶ñ¼g¸ê®Æ!"
  11.    Response.End ' ¤¤Â_ASPµ{¦¡°õ¦æ
  12. End If
  13. '¥H¤U¬°Åª¤J¸ê®Æªº³B²z,¥ý±NŪ¤JªºÄæ¦ì¸ê®Æ§ï¼g¦¨
  14. 'HTML§Î¦¡¥H¤è«K¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zºô­¶¨ú¥Î

  15. ' ²Ä¤@¦æ¬°³B²z©m¦WÄæ¦ì¸ê®Æ
  16. Line1 = "¯d¨¥ªÌ¡G" & name & "<BR>"

  17. '²Ä¤G¦æ¬°³B²zE-MailÄæ¦ì¸ê®Æ
  18. Line2 = "<A HREF=mailto:" & Email & ">" & Email & "</A><BR>"

  19. ' ²Ä¤T¦æ¬°³B²z¥DÃDÄæ¦ì¸ê®Æ
  20. Line3 = "¥D¡@ÃD¡G" & subject & "<BR>"

  21. ' ²Ä¥|¦æ¬°³B²z¯d¨¥¤º®e
  22. '¥²¶·¥ý±N¯d¨¥¤º®e¤¤ªº¸õ¦æ¦r¤¸ vbCrLf ¨ú¥N¦¨¬° <BR>
  23. textmemo = Replace( textmemo, vbCrLf, "<BR>" )
  24. ' ¦]¬°¯d¨¥¤º®e¬O¦h¦æªº¤å¦rÄæ¦ì¡A©Ò¥H§Ú­Ì§Q¥Îªí®æ§Î¦¡Åã¥Ü
  25. Line4 = "<TABLE BORDER=0><TR><TD>"
  26. Line4 = Line4 & textmemo & "</TD></TR></TABLE>"

  27. On Error Resume Next

  28. ' «Ø¥ß FileSystemObject ª«¥ó
  29. Set fileobject = Server.CreateObject("Scripting.FileSystemObject")

  30. Application.Lock

  31. ' ¨ú±o information.txt ¤Î oldinfo.txt ªº§¹¾ã¸ô®|
  32. FilePath = Server.MapPath("information.txt")
  33. OldFilePath = Server.MapPath("oldinfo.txt")

  34. ' ±N information.txt §ó¦W½Æ»s¬° oldinfo.txt
  35. fileobject.MoveFile FilePath, OldFilePath

  36. ' ¶}±Ò oldinfo.txt
  37. Set TEMP = fileobject.OpenTextFile(OldFilePath, , True)

  38. ' «Ø¥ß information.txt ¨Ó¼g¤J·sªº·N¨£¯d¨¥
  39. Set newmessage = fileobject.CreateTextFile(FilePath)

  40. ' ±N·sªº·N¨£¯d¨¥¸ê®Æ¼g¤J information.txt
  41. newmessage.WriteLine Line1
  42. newmessage.WriteLine Line2
  43. newmessage.WriteLine Line3
  44. newmessage.WriteLine Line4
  45. newmessage.WriteLine "<HR>"

  46. ' ¤@¦¸Åª¨ú¾ã­Ó oldinfo.txtªº¸ê®Æ(¤w¸g¦s¦b©óTEMP)¡A
  47. ' µM«á±N¦ì©óoldinfo.txt ¤¤Âªº·N¨£¯d¨¥¦X¨Ö¼g¤J information.txt
  48. newmessage.WriteLine TEMP.ReadAll

  49. ' ¸ê®Æ¼g¤J§¹²¦«á,Ãö³¬ information.txt
  50. TEMP.Close

  51. ' §R°£¤w¸g¨S¦³¥Î³Bªº oldinfo.txt
  52. fileobject.DeleteFile OldFilePath, True

  53. Application.UnLock

  54. ' ±N¦X¨Ö«áªº³Ì·s¯d¨¥¸ê®Æ»Pªº·N¨£¯d¨¥¸ê®Æ
  55. '¡yÂà¦V¡z¿é¥X¨ì¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶
  56. '¡ymessage.asp¡z¤¤
  57. Response.Redirect "message.asp"

  58. %>
½Æ»s¥N½X
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

Ū¨ú»P¼g¤J¯d¨¥·N¨£¸ê®Æ¸ê®Æ

¦P®aªø·N¨£¯d¨¥¸ê®Æ³QÂà·|¬°HTML®æ¦¡«á¡A±µ¤U¨Ó§Ú­Ì­n§@ªº´N¬O±N³o¨Ç³Ì·sªº·N¨£¯d¨¥¸ê®Æ¯d¨¥·N¨£¸ê®Æ»P­ì¥»¦s¦b©ó¯d¨¥¬ö¿ý¸ê®ÆÀɮסyinformation.txt¡z¤ºªºÂ·N¨£¯d¨¥¸ê®Æ¦X¨Ö°_¨Ó¦A¦^¦s¦Ü¯d¨¥¬ö¿ý¸ê®ÆÀɮסyinformation.txt¡z¤¤¡C
  1. ' «Ø¥ß FileSystemObject ª«¥ó
  2. Set fileobject =
  3. Server.CreateObject("Scripting.FileSystemObject")
  4. Application.Lock
  5. ' ¨ú±o information.txt ¤Î oldinfo.txt ªº§¹¾ã¸ô®|
  6. FilePath = Server.MapPath("information.txt")
  7. OldFilePath = Server.MapPath("oldinfor.txt")
  8. ' ±N information.txt §ó¦W½Æ»s¬° oldinfo.txt
  9. fileobject.MoveFile FilePath, OldFilePath
  10. ' ¶}±Ò oldinfo.txt
  11. Set TEMP = fileobject.OpenTextFile(OldFilePath, , True)
  12. ' «Ø¥ß information.txt ¨Ó¼g¤J·sªº·N¨£¯d¨¥
  13. Set newmessage = fileobject.CreateTextFile(FilePath)
  14. ' ±N·sªº·N¨£¯d¨¥¸ê®Æ¼g¤J information.txt
  15. newmessage.WriteLine Line1
  16. newmessage.WriteLine Line2
  17. newmessage.WriteLine Line3
  18. newmessage.WriteLine Line4
  19. newmessage.WriteLine "<HR>"
  20. ' ¤@¦¸Åª¨ú¾ã­Ó oldinfo.txtªº¸ê®Æ(¤w¸g¦s¦b©óTEMP)¡A
  21. ' µM«á±N¦ì©óoldinfo.txt ¤¤Âªº·N¨£¯d¨¥¦X¨Ö¼g¤J information.txt
  22. newmessage.WriteLine TEMP.ReadAll
  23. ' ¸ê®Æ¼g¤J§¹²¦«á,Ãö³¬ oldinfo.txt
  24. TEMP.Close
  25. ' §R°£¤w¸g¨S¦³¥Î³Bªº oldinfo.txt
  26. fileobject.DeleteFile OldFilePath, True
  27. Application.UnLock
½Æ»s¥N½X
¦b¶}©lÀɮ׸ê®Æ³B²z¤§«e§Ú­Ì¨Ï¥Î¤F Application.Lock¤èªk»P¦bÀɮ׸ê®Æ³B²z§¹²¦«á¨Ï¥Î¤F Application.UnLock¤èªk¡A¬O¬°¤FÁקK¨â¦ì¬Æ¦Ü¨â¦ì¥H¤Wªº³s½uÂsÄýªÌ¦P®É¶i¦æºô­¶Áåµ²®É³y¦¨ASPµ{¦¡°õ¦æªºµ²ªGµo¥Í¸ê®Æ¿ù»~ªº¹w¨¾±¹¬I¡C
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

¯d¨¥·N¨£¸ê®ÆªºÂà´«

·í§Ú­Ì§Q¥ÎRequst¤èªk±N¡y·N¨£µoªíªí³æ¡zªººô­¶¡yissue.asp¡z¤¤ªº¿é¤JÄæ¦ì¸ê®ÆŪ¨ú¥X¨Ó«á¡A³o¨Ç¸ê®Æ¦bÅã¥Ü©ó¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶¡ymessage.asp¡z¥H¤Î±N³o¨Ç·N¨£¯d¨¥¸ê®Æ¼g¤J¯d¨¥¬ö¿ý¸ê®ÆÀɮסyinformation.txt¡z¤§«e¡A§Ú­Ì¥i¥H¥ý±N³o¨Ç·N¨£¯d¨¥¸ê®ÆÂà´«¬°HTML®æ¦¡¡AÁöµM³o»ò°µ±N·|¨Ï§Ú­Ìªº¯d¨¥¬ö¿ý¸ê®ÆÀɮסyinformation.txt¡zÅé¿n¤j¤F¤@ÂI¡A¦ý¬O·í§Ú­Ì¦b»s§@¡yÆ[¬Ý·N¨£¯d¨¥µ²ªG¡zªººô­¶±N·|«D±`»´ÃP¡C

¥H¤U¬°ASPµ{¦¡³B²z±q¡y·N¨£µoªíªí³æ¡zªººô­¶¡yissue.asp¡z¤¤Åª¨úÄæ¦ì¸ê®Æ«áªº¸ê®ÆHTML®æ¦¡Âà´«µ{¦¡±Ô­z¡G
  1. ' ²Ä¤@¦æ¬°³B²z©m¦WÄæ¦ì¸ê®Æ
  2. Line1 = "¯d¨¥ªÌ¡G" & name
  3. '²Ä¤G¦æ¬°³B²zE-MailÄæ¦ì¸ê®Æ
  4. Line2 = "<A HREF=mailto:" & Email & ">" & Email & "</A>"
  5. ' ²Ä¤T¦æ¬°³B²z¥DÃDÄæ¦ì¸ê®Æ
  6. Line3 = "¥D¡@ÃD¡G" & subject & "<BR>"
  7. ' ²Ä¥|¦æ¬°³B²z¯d¨¥¤º®e
  8. '¥²¶·¥ý±N¯d¨¥¤º®e¤¤ªº¸õ¦æ¦r¤¸ vbCrLf ¨ú¥N¦¨¬° <BR>
  9. textmemo = Replace( textmemo, vbCrLf, "<BR>" )
  10. ' ¦]¬°¯d¨¥¤º®e¬O¦h¦æªº¤å¦rÄæ¦ì¡A
  11. '©Ò¥H§Ú­Ì§Q¥Îªí®æ§Î¦¡Åã¥Ü
  12. Line4 = "<TABLE BORDER=0><TR><TD>"
  13. Line4 = Line4 & textmemo & "</TD></TR></TABLE>"
½Æ»s¥N½X
ª`·N
¦b³B²z¯d¨¥¤º®eÄæ¦ìªº®É­Ô§Ú­Ì'¥²¶·§Q¥ÎReplace¨ç¼Æ¥ý±N¯d¨¥¤º®e¤¤ªº¸õ¦æ¦r¤¸ vbCrLf ¨ú¥N¦¨¬° <BR>
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

«Ø¥ß§¹¾ãªºµ{¦¡

¨ì²{¶¥¬q¡A§Ú­Ì¤w¸g§¹¦¨¡y·N¨£µoªíªí³æ¡zªººô­¶¡yissue.asp¡zªº»s§@¡A¨Ã¥B¤w¸g¤j­P¤F¸Ñ¤F¼g§@¬ö¿ý¥H¤Î³B²z¯d¨¥ªºASPµ{¦¡ºô­¶Àɮסyhandel.asp¡z©Ò»Ýªº¤èªkCreateTextFile¡]«Ø¥ßÀɮס^¡BOpenTextFile¡]¶}±ÒÀɮס^¤èªk¡BWriteLine¡]³v¦æ¼g¤J¸ê®Æ¡^¤èªk¡BReadAll¡]Ū¨ú¥þ³¡Àɮ׸ê®Æ¡^¤èªk¡BMoveFile¡]Àɮקó¦W¡^¤èªk»PDeleteFile¡]ÀɮקR°£¡^¤èªk¡C²{¦b§Ú­Ì´N¥Î³o¨Ç¤èªk¨Ó²Õ¦X¼g§@§¹¦¨§Ú­Ìªº¼g§@¬ö¿ý¥H¤Î³B²z¯d¨¥ªºASPµ{¦¡¡C

¡@ÁÙ°O±o§Ú­Ì¤w¸g§¹¦¨ ¡y·N¨£µoªíªí³æ¡zªººô­¶¡yissue.asp¡z¤¤©Ò¨Ï¥Îªº´X­Ó¿é¤JÄæ¦ì¦WºÙ¶Ü¡H²¦C¦p¤U

Äæ¦ì

Äæ¦ì¦WºÙ

ªí³æ¤¸¥ó

®aªø©m¦W

name

³æ¦æ¤å¦r¤è¶ô

Ápµ¸Email

email

³æ¦æ¤å¦r¤è¶ô

·N¨£¥DÃD

subject

³æ¦æ¤å¦r¤è¶ô

·N¨£¤Ï¬M¤º®e

textmemo

¦h¦æ¦¡¤å¦r¤è¶ô



³o¨ÇÄæ¦ì¤¤ªº¸ê®Æ³£¬O§Ú­ÌASPµ{¦¡©Ò­nŪ¨ú¥H¤Î³B²zªº¸ê®Æ¡A¦]¦¹§Ú­Ì¥²¶·¥ý¦bASPµ{¦¡¤¤§Q¥ÎRequst¤èªk¨ÓŪ¨ú³o¨ÇÄæ¦ì¤¤ªº¸ê®Æ¡AŪ¨ú¦UÄæ¦ì¤¤¸ê®Æªº¤èªk¦Cªí¦p¤U¡G

·N¨£µoªíªí³æºô­¶¤¤ªºÄæ¦ì¦WºÙ

ASPµ{¦¡ªºÅª¨ú¤èªk

name

Requst("name")

email

Requst("email")

subject

Requst("subject")

textmemo

Request("textmemo")



10-11.png

¦pªG§Ú­Ì¤£§Æ±æµoªí·N¨£ªº®aªø¦b¦U­ÓÄæ¦ì¤¤¤£¶ñ¤J¸ê®Æ¦Ó¯d¥Õ¡A§Ú­ÌÁÙ¥i¥H¥[¤W¤U¦C³o¬q§PÂ_±Ô­z¨ÓÀˬd¦U­ÓÄæ¦ì¤¤¬O§_¯d¤UªÅ¥Õ¨S¦³¶ñ¼g¸ê®Æ¡G
  1. If name = "" Or email = "" Or subject = "" Or textmemo = "" Then
  2. Response.Write "±z¦³Äæ¦ìªÅ¥Õ¨S¦³¶ñ¼g¸ê®Æ!"
  3. Response.End ' ¤¤Â_ASPµ{¦¡°õ¦æ
  4. End If
½Æ»s¥N½X
10-12.png
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

        ÀR«ä¦Û¦b : ¤â¤ß¦V¤U¬O§U¤H¡A¤â¤ß¦V¤W¬O¨D¤H¡F§U¤H§Ö¼Ö¡A¨D¤Hµh­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD