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

10-2-3 ¸ê®ÆÄæ¦ìÅçÃÒ

10-2-3 ¸ê®ÆÄæ¦ìÅçÃÒ

10-2-3   ¸ê®ÆÄæ¦ìÅçÃÒ
·í³s½uªºÂsÄýªÌ©ó¡u¥[¤J·|­û¡vªí³æ¤¤¶ñ¼g¦n¬ÛÃö¸ê®Æ¡A«ö¤U¡u½u¤W·s¼W¡v«ö¶s¤§«á¡A¶ñ¼g¦nªº¸ê®Æ±N¥æ¥Ñ°O¿ý¥H¤Î³B²z·s¼W·|­û¸ê®ÆªºPHPµ{¦¡¡uaddin.php¡v¡A¨Ó¼g¤J¸ê®Æ®wÀɮסA¶ñ¼g¦nªº¸ê®Æ¼g¤J¸ê®Æ®w¤§«e¡A§Ú­Ì¥²¶·¥ýÅçÃÒ³s½uªºÂsÄýªÌ¦b¡u¥[¤J·|­û¡vªí³æ¤¤¦U­ÓÄæ¦ì¤¤¬O§_³£¦³¶ñ¼g¸ê®Æ¡C

­Y¡u¥[¤J·|­û¡vªí³æ¤¤ªºÄæ¦ì¦³¥¼¶ñ¤J¸ê®Æ¦Ó¯d¥ÕªÌ¡A±N¤£¤©±µ¨ü¡A¤£¦ý¸ê®Æ¤£·|¼g¤J¸ê®Æ®wÀɮסA¦Ó¥B±N²£¥Í¤@¬q¿ù»~°T®§©óºô­¶¤¤¡A§Ú­Ì¥H¥¼¶ñ¼g±K½XÄæ¦ì¬°¨Ò¡A¦p¤U¹Ï¡G

¹Ï10-10   ±K½XÄæ¦ì¨S¿é¤J¸ê®Æ¡C
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

·í¡uIf¡v§PÂ_±Ô­zÅçÃÒÄæ¦ì¸ê®Æ¤º®e¬°¡uEmpty¡v¡A¤]´N¬O»¡¸ê®ÆÄæ¦ì¤º®e¬O¯d¥Õ®É¡A«h©I¥s¡umsg¡v°Æµ{¦¡¨Ó²£¥Í¤@­Ó¿ù»~°T®§ªººô­¶¡A¡umsg¡v°Æµ{¦¡«D±`²µu¡A¤£¹L¡A©I¥s¡umsg¡v°Æµ{¦¡ªº¦P®É¡A¥²¶·¶Çµ¹¡umsg¡v°Æµ{¦¡¤@­Ó¿ù»~°T®§¦r¦ê°Ñ¼Æ¡A³o­Ó¿ù»~°T®§¦r¦ê°Ñ¼Æ±NÅã¥Ü¦b¿ù»~°T®§ªººô­¶¤¤¡C

²{¦b¡A§Ú­Ì¨Ó¬Ý¬Ý¡umsg¡v¨ç¼Æ¬O¦p¦ó¨Ó²£¥Í¤@­Ó¿ù»~°T®§ªººô­¶¡G
  1. <?
  2. function msg($info)
  3. {
  4. ?>
  5.    <CENTER>
  6.    <H2><Font Color=red><?=$info?><HR size="1" color="#FF0066">
  7.    <FORM>
  8.    <INPUT Type=Button Value="¤W¤@­¶" OnClick="history.back();">
  9.    </FORM>
  10.    </CENTER>
  11.    </font>
  12. <?
  13. exit();   
  14. }
  15. ?>
½Æ»s¥N½X
·í¡umsg¡v¨ç¼Æ³Q©I¥s®É¡A±N¿é¥X¤@¬qºô­¶HTML±Ô­z¡]¤W¦C²ÊÅé¦r³¡¤Àªº°Ï¬q¡^¡A¦P®É¡A¡uIf¡v§PÂ_±Ô­z±N©I¥s¡umsg¡v°Æµ{¦¡©Ò¶Ç¨Óªº¿ù»~°T®§¦r¦ê°Ñ¼Æ¤º®e¡]info¡^¥[¨ìºô­¶HTML±Ô­z¤¤Åã¥Ü¥X¨Ó¡AµM«á°õ¦æ¡uexit();¡v±Ô­z²×¤îµ{¦¡ªº°õ¦æ¡C
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

¦b¡u¥[¤J·|­û¡vªí³æ¤¤¦@¦³¥|­ÓÄæ¦ì¥²¶·¸ê®ÆÅçÃÒ¡A¤À§O¬OName¡]´L©m¤j¦W¡^¡BEmail¡]E-mail¡^¡BID¡]µn¤J¦WºÙ¡^»PPassword¡]µn¤J±K½X¡^µ¥¥|­ÓÄæ¦ì¡A·í§Ú­Ìªº°O¿ý¥H¤Î³B²z·s¼W·|­û¸ê®ÆªºPHPµ{¦¡addin.php¡A±µ¦¬¨ì¨Ó¦Û¡u¥[¤J·|­û¡vªí³æªºÄæ¦ì¸ê®Æ«á¡A¥u­n³z¹L¡uIf¡v§PÂ_±Ô­z¨ÓÅçÃÒÄæ¦ì¸ê®Æ¤º®e¬O§_¬°¡uEmpty¡v´N¥iª¾¹D¸ê®ÆÄæ¦ì¤º®e¬O§_¯d¥Õ¡A­Y¸ê®ÆÄæ¦ì¤º®e¯d¥Õ«h©I¥s¡umsg¡v¨ç¼Æ¨Ó²£¥Í¤@­Ó¿ù»~°T®§ªººô­¶¡C
  1. /§PÂ_Äæ¦ì¸ê®Æ¬O§_¬°ªÅ¥Õ
  2. //­YÄæ¦ì¸ê®ÆªÅ¥Õ«h©I¥smsg°Æµ{¦¡
  3. if (empty($_REQUEST["Name"]))
  4. {
  5. msg("±z§Ñ°O¿é¤J¤j¦W°Õ!!");
  6. }
  7. else if(empty($_REQUEST["Email"]))
  8. {
  9. msg(!"±z§Ñ°O¿é¤JE-Mail°Õ!!");
  10. }
  11. else if(empty($_REQUEST["ID"]))
  12. {
  13. msg("±z§Ñ°O¶ñ¼gµn¤J¦WºÙ°Õ!!");
  14. }
  15. else if(empty($_REQUEST["Password"]))
  16. {
  17. msg("±z§Ñ°O¶ñ¼gµn¤J±K½X°Õ!!");
  18. }
  19. else
  20. {
  21. //±µ¦¬¨Ó¦Û¡y¥[¤J·|­û¡zªí³æ¤¤ªºÄæ¦ì¸ê®Æ
  22. $Name = $_REQUEST["Name"];
  23. $Email = $_REQUEST["Email"];
  24. $ID = $_REQUEST["ID"];
  25. $Password = $_REQUEST["Password"];
  26. }
½Æ»s¥N½X
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

        ÀR«ä¦Û¦b : §Ñ¥\¤£§Ñ¹L¡A§Ñ«è¤£§Ñ®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD