µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
PHP
»
PHP+MySQL ¤Jªù¹ê§@
» 12-2-3 ¦Û°Ê°e«Hµ{¦¡
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
12-2-3 ¦Û°Ê°e«Hµ{¦¡
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
1
#
¸õÂà¨ì
»
¥¿§Ç¬Ý©«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2011-4-24 14:39
|
¥u¬Ý¸Ó§@ªÌ
12-2-3 ¦Û°Ê°e«Hµ{¦¡
12-2-3 ¦Û°Ê°e«Hµ{¦¡
·í°Ý¨÷¶ñ¼gªÌ¦bin.phpµ{¦¡ºô¶¤¤«ö¤U¡y°e¥X°Ý¨÷¡z«ö¶s«á¡Aªí³æ¤¤ªº¸ê®Æ´N·|°e¥æ¦Û°Ê°e«Hµ{¦¡sentmsg.php³B²z¡Asentmsg.phpµ{¦¡±N·|§â°Ý¨÷¶ñ¼gµ²ªG»P¶ñ¼gªÌªº¸ê®Æ¥HE-Mail¦Û°Ê¶Ç°eªº¤è¦¡±H°e¦ÜºÞ²zªÌ©Î¬O°Ý¨÷½Õ¬d¥D«ù¤Hªº¤â¤¤¡C
¦b«H¥ó¶Ç°e¤§«e¡A§ÚÌ¥²¶·¥ý³]©wmail()¨ç¼Æªº¦¬¥ó¤H(To)¡B±H¥ó¤H(From)¡B«H¥ó¥D¦®(Subject)»P«H¥ó¤º®e(Body)µ¥¥|¶µÄÝ©Ê¡A«H¥ó¥D¦®§ÚÌ¥i¥H¦Û¦æ³]©w¬°©T©w¤å¦r¡A¦¬¥óªÌ«h¬°ºÞ²zªÌ©Î¬O°Ý¨÷½Õ¬d¥D«ù¤HªºE-Mail±b¸¹(³o¤]¬O©T©wªº)¡A«H¥ó¶Ç°eªº±H¥óªÌ»P«H¥ó¤º®e(°Ý¨÷µ²ªG)«h¬OÀHµÛ°Ý¨÷¶ñ¼gªÌ©Ò¶ñ¼gªº¤º®e¦ÓÅÜ°Ê¡C
//«Ø¥ß¶l¥ó°ò¥»¶µ¥Ø
//¥H°Ý¨÷µ{¦¡ºô¶¤¤©Ò¶ñ¼gªºE-mail¬°±H¥óªÌ
$From= "From: " . $_REQUEST["Email"];
//¦¬¥óªÌ¬°ºÞ²zû©Î°Ý¨÷½Õ¬d¥D«ù¤HªºE-Mail
$To= $_REQUEST["Email"];
//«H¥ó¥DÃD,³q±`¬°°Ý¨÷ªº¥DÃD
$Subject="ºô¸ô°Ý¨÷½Õ¬d";
//«H¥ó¤º®e
$Body = "ºô¤Í" . $_REQUEST["Name"] . "°Ý¨÷·N¨£¡G" . "\r\n"; //¥H¤U²¤¡K.
½Æ»s¥N½X
½ÐÆ[¹î¤W¦C³o¬qµ{¦¡±Ôz¡A±z¥i¥H²M·¡ªº¬Ý¨ì§ÚÌFrom¡]±H¥óªÌ¶l¥ó«H½c¡^ÄÝ©ÊȬO³]©w¬°¡G°Ý¨÷¶ñ¼gªÌ¦bin.phpµ{¦¡ºô¶¤¤EmailÄæ¦ì¤¤©Ò¶ñ¼gªº¶l¥ó«H½c¡A³o»ò°µ³Ì¥Dnªº¥Øªº¬O¬°¤FÅýºÞ²zªÌ©Î¬O°Ý¨÷½Õ¬d¥D«ù¤H¯à°÷§Y®Éªº¥HE-Mail¤è¦¡¦^À³°Ý¨÷¶ñ¼gªÌ©Ò´£¥Xªº·N¨£¡C
´£¥Ü¡I¡I
¥»½d¨Ò¤¤From(±H¥óªÌ¶l¥ó«H½c)»PTo(¦¬¥óªÌ¶l¥ó«H½c)ÄÝ©Êȳ]©w¬O¬Û¦Pªº¡A¤]´N¬O¦Û¤v±H«Hµ¹¦Û¤v¡A¦b¹ê»ÚÀ³¥Î®É½Ð¦Û¦æ§ó§ïTo(¦¬¥óªÌ¶l¥ó«H½c)ÄÝ©Êȳ]©w¡C
¼Ó¥D¼ö©«
½×¾Â¤£Åý¸ê¾ú¤ñ¸û²Lªº¤H¤U¸ü¬d¬Ýªþ¥óªº¥Î·N
EXCEL±MÄÝ°Q½×°Ï¦Û§Y¤é°_¤¤¾Ç¥Í¥H¤W·|û¤è
³Â»¶®a±Ú°Q½×°Ï ³q¥Îª©³W
OFFICE °ò¦±Ð¾Ç¼Æ¦ì¤Æ
ATX ¹q·½¨ÑÀ³¾¹¤â°Ê±Ò°Ê(¤£±µ¥D¾÷ªO±Ò°Ê)
¦Ò¼{Ãö³¬½×¾Âºô¯¸
³Â»¶®a±Ú°Q½×°ÏÁô¨pÅv¬Fµ¦»¡©ú
³Â»¶®a±Ú°Q½×°Ï ¸Û¼xª©¥D
¥Ñ½׾ÂÂà¶iªº¤¤¾Ç¥Íµ¥¯Å¥H¤W·|û,½ÐÃöª`!
14-2 ¸ê®Æ®w¹Ï¤ù¦s¨ú
¦¬ÂÃ
¤À¨É
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
4
#
µoªí©ó 2011-4-24 14:41
|
¥u¬Ý¸Ó§@ªÌ
¨Ï¥ÎCDONTSª«¥ó±H°e°Ý¨÷µ²ªG
¬°¤F¤£ÅU¦¹Á¡©¼¡Aµ§ªÌ¤]¼g¤F§Q¥ÎCDONTS_NewMailª«¥ó±H°e°Ý¨÷µ²ªGªº½d¨Òµ{¦¡¡G¡usentmsg_cdonts.php¡v¡Aµ{¦¡³]pì²z»Psentmsg.php¬Û¦P¡A¦]¦¹´N¤£¦h¨¥¤F¡A¦¹½d¨Òµ{¦¡½Ð°t¦X¡uin_cdonts.php¡v¨Ï¥Î¡C
<?
//³sµ²MySQL Server
$conn = mysql_connect("localhost", "root", "12345a");
//¿ï¾Ü¸ê®Æ®w
mysql_select_db("QUESTION", $conn);
//«ü©w´£¨ú¸ê®Æªº®Õ¹ï¦r¤¸ªí
mysql_query("set character set big5");
//«Ø¥ß¬d¸ß¦r¦ê
$SQL="Select * From question Order By ÃD¸¹";
//±N¦^¶Çµ²ªG¦s©ñ©óÅܼƤ¤
$datalist=mysql_query($SQL);
//«Ø¥ß«H¥ó¶Ç°eª«¥ó
$CDONTS = new COM("CDONTS.NewMail");
//«Ø¥ß¶l¥ó°ò¥»¶µ¥Ø
//¥H°Ý¨÷µ{¦¡ºô¶¤¤©Ò¶ñ¼gªºE-mail¬°±H¥óªÌ
$CDONTS->From=$_REQUEST["Email"];
//¦¬¥óªÌ¬°ºÞ²zû©Î°Ý¨÷½Õ¬d¥D«ù¤HªºE-Mail
$CDONTS->To= $_REQUEST["Email"];
//«H¥ó¥DÃD,³q±`¬°°Ý¨÷ªº¥DÃD
$CDONTS->Subject="ºô¸ô°Ý¨÷½Õ¬d";
//«H¥ó¤º®e
$Body = "ºô¤Í" . $_REQUEST["Name"] . "°Ý¨÷·N¨£¡G";
//¦C¥X°Ý¨÷ÃD¥Ø¤Î°Ý¨÷¶ñ¼gªÌªºµª®×
$I=1;
while (($fielddatas=mysql_fetch_array($datalist)))
{
//¦C¥X°Ý¨÷ÃD¥Ø
$Body =$Body . "\r\n" . $I . ". " . $fielddatas["ÃD¥Ø"] . "\r\n";
//¨ú±o¬Û¹ïÀ³©óÃD¥Øªº°Ý¨÷µª®×
$Ans=$_REQUEST["No" . $fielddatas["ÃD¸¹"]];
//¦C¥Xµª®×
$Body = $Body . $Ans ;
$I++;
}
$CDONTS->Body=$Body;
// ±H¥X«H¥ó
$CDONTS->Send();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; chaRSet=big5">
<title>·PÁ±zªº·N¨£!!</title>
</head>
<body>
·PÁ±zªº·N¨£
</body>
</html>
½Æ»s¥N½X
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
3
#
µoªí©ó 2011-4-24 14:40
|
¥u¬Ý¸Ó§@ªÌ
sentmsg.php
<?
//³sµ²MySQL Server
$conn = mysql_connect("localhost", "root", "12345a");
//¿ï¾Ü¸ê®Æ®w
mysql_select_db("QUESTION", $conn);
//«ü©w´£¨ú¸ê®Æªº®Õ¹ï¦r¤¸ªí
mysql_query("set character set big5");
//«Ø¥ß¬d¸ß¦r¦ê
$SQL="Select * From question Order By ÃD¸¹";
//±N¦^¶Çµ²ªG¦s©ñ©óÅܼƤ¤
$datalist=mysql_query($SQL);
//«Ø¥ß¶l¥ó°ò¥»¶µ¥Ø
//¥H°Ý¨÷µ{¦¡ºô¶¤¤©Ò¶ñ¼gªºE-mail¬°±H¥óªÌ
$From= "From: " . $_REQUEST["Email"];
//¦¬¥óªÌ¬°ºÞ²zû©Î°Ý¨÷½Õ¬d¥D«ù¤HªºE-Mail
$To= $_REQUEST["Email"];
//«H¥ó¥DÃD,³q±`¬°°Ý¨÷ªº¥DÃD
$Subject="ºô¸ô°Ý¨÷½Õ¬d";
//«H¥ó¤º®e
$Body = "ºô¤Í" . $_REQUEST["Name"] . "°Ý¨÷·N¨£¡G" . "\r\n";
//¦C¥X°Ý¨÷ÃD¥Ø¤Î°Ý¨÷¶ñ¼gªÌªºµª®×
$I=1;
while (($fielddatas=mysql_fetch_array($datalist)))
{
//¦C¥X°Ý¨÷ÃD¥Ø
$Body = $Body . $I . ". " . $fielddatas["ÃD¥Ø"] . "\r\n";
//¨ú±o¬Û¹ïÀ³©óÃD¥Øªº°Ý¨÷µª®×
$Ans=$_REQUEST["No" . $fielddatas["ÃD¸¹"]];
//¦C¥Xµª®×
$Body = $Body . $Ans . "\r\n";
$I++;
}
// ±H¥X«H¥ó
mail($To ,$Subject ,$Body ,$From);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; chaRSet=big5">
<title>·PÁ±zªº·N¨£!!</title>
</head>
<body>
·PÁ±zªº·N¨£
</body>
</html>
½Æ»s¥N½X
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
2
#
µoªí©ó 2011-4-24 14:40
|
¥u¬Ý¸Ó§@ªÌ
¦b«H¥ó¤º®eªº³¡¤À¡A°£¤Fn¦³°Ý¨÷¶ñ¼gªÌ©Ò¿ï¾Üªºµª®×»P·N¨£¥~¡A¥»½d¨Ò¤¤ÁÙ¥[¤W¬Û¹ïÀ³ªº°Ý¨÷ÃD¥Ø¥»¤å¡A¦pªG¤£¥[¤Wì©lÃD¥Øªº¤º®e¡A§ÚÌ«ç¯àª¾¹Dµª®×ªº·N¸q¡H
//¦C¥X°Ý¨÷ÃD¥Ø¤Î°Ý¨÷¶ñ¼gªÌªºµª®×
$I=1;
while (($fielddatas=mysql_fetch_array($datalist)))
{
//¦C¥X°Ý¨÷ÃD¥Ø
$Body = $Body . $I . ". " . $fielddatas["ÃD¥Ø"] . "\r\n";
//¨ú±o¬Û¹ïÀ³©óÃD¥Øªº°Ý¨÷µª®×
$Ans=$_REQUEST["No" . $fielddatas["ÃD¸¹"]];
//¦C¥Xµª®×
$Body = $Body . $Ans . "\r\n";
$I++;
}
// ±H¥X«H¥ó
mail($To ,$Subject ,$Body ,$From);
½Æ»s¥N½X
1.¨Ï¥ÎWhile°j°é±Ôz°t¦X§ïÅܧ@¥Î¤¤¸ê®Æ¿ý¦ì¸m»P´£¨ú¸ê®Æªºmysql_fetch_array()¨ç¼Æ¡A±N©Ò¦³ªº°Ý¨÷ÃD¥Ø¦Û¸ê®Æ®w¸ê®Æªí¤¤Åª¨ú¥X¨Ó¡C
2.§Q¥Î$_REQUEST[¡§ªí³æÄæ¦ì¡¨]±Ôz¨ú±o¨Ó¦Û°Ý¨÷µ{¦¡ºô¶¤¤¬Û¹ï©óÃD¥Øªºµª®×Äæ¦ìÄÝ©ÊÈ(Value)¡C
3.©I¥smail()¨ç¼Æ±N«H¥ó±H¥X¡C
´£¥Ü¡I¡I
µ{¦¡½X¤¤ªº¡u\r\n¡v¬°¤@´«¦æ²Å¸¹¡A¨ä§@¥Î´N¬O±N§Ú̪º«H¥ó¤º®e¤À¬qÅã¥Ü¡IY¥¼¥[¤W¦¹´«¦æ²Å¸¹¡A«h§Ú̪º«H¥ó¤º®e±N·|¥þ³¡¦ê±µ¦¨¤@Ó¬q¸¨¡C
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
ÀR«ä¦Û¦b :
§g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·