php»ñÈ¡form±íµ¥ÖÐnameÏàͬµÄ±íµ¥Ïî
ÔÎĵØÖ·£ºhttp://hi.baidu.com/pengpeng5047/blog/item/c3f3b003d0452a034bfb519f.html
±ÈÈçÏÂÃæµÄ±íµ¥£º
/*form.php*/
<form action="getform.php" method="post">
<table border="1">
<tr>
<th>ÐÕÃû</th>
<th>ѧºÅ</th>
</tr>
<tr>
<td>ÕÅÈý</td>
<td><input type="text" name="number" value="001"></td>
</tr>
<tr>
<td>ÀîËÄ</td>
<td><input type="text" name="number" value="002"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="±£´æÐÞ¸Ä"/></td>
</tr>
</table>
</form>
ÕâÊÇÒ»¸öѧÉúÐÅÏ¢µÄ±íµ¥£¬ÔÊÐí¹ÜÀíÔ±ÐÞ¸ÄѧÉúµÄѧºÅ²¢±£´æ¡£ºÜÃ÷ÏÔͨ³£Ñ§Éú»áÓкܶà¸ö¡£ÎªÁË»ñȡѧºÅ£¬ÎÒÃǵÄgetform.phpÈçÏÂ:
<?php
$number = $_POST['number'];
echo $number;
?>
Èç¹ûÖ´ÐеĻ°ÎÒÃǻᷢÏÖÊä³öµÄ½á¹ûÊÇ×îºóÒ»¸öÎı¾ÓòµÄÖµ"002"£¬ÄÇôÔõÑù»ñµÃËùÓÐѧÉúµÄѧºÅÄØ£¿ÔÚÍøÉϲé×ÊÁϺó»ñÖª£ºÖ»ÐèÔÚform.phpÖаÑnameÓÉnumber¸ÄΪnumber[]£¬ÄÇôÎÒÃÇÔÚgetform.phpÖлñµÃµÄ$_POST['number']¾ÍÊÇÒ»¸öËùÓÐѧºÅÊý×é¡£Ð޸ĺó¶ÔÓ¦µÄgetform.phpΪ£º
<?php
$number = $_POST['number'];
foreach($number as $value)
echo $value."<br/>";
?>
Ö´ÐУ¬¼´¿ÉÏÔʾËùÓÐѧÉúµÄѧºÅÁË£¬great!
Ïà¹ØÎĵµ£º
Ò»¡¢ÎÊÌâÆðÔ´
ÉÔ´óһЩµÄÍøÕ¾£¬Í¨³£¶¼»áÓкü¸¸ö·þÎñÆ÷£¬Ã¿¸ö·þÎñÆ÷ÔËÐÐ×Ų»Í¬¹¦ÄܵÄÄ£¿é£¬Ê¹Óò»Í¬µÄ¶þ¼¶ÓòÃû£¬¶øÒ»¸öÕûÌåÐÔÇ¿µÄÍøÕ¾£¬Óû§ÏµÍ³ÊÇͳһµÄ£¬¼´Ò»Ì×
Óû§Ãû¡¢ÃÜÂëÔÚÕû¸öÍøÕ¾µÄ¸÷¸öÄ£¿éÖж¼ÊÇ¿ÉÒԵǼʹÓõġ£¸÷¸ö·þÎñÆ÷¹²ÏíÓû§Êý¾ÝÊDZȽÏÈÝÒ×ʵÏֵģ¬Ö»ÐèÒªÔÚºó¶Ë·Å¸öÊý¾Ý¿â·þÎñÆ÷£¬¸÷¸ö·þÎñÆ÷ͨ¹ýͳһ½Ó
......
Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑÑ°±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ“º¯Êý”£¨Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ£©¡£
1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿¶¨Ò ......
֮ǰÍøÒ³µÄchartsetÓõÄÊÇutf-8£¬ÎļþÒ²ÓÃutf-8£¬È»ºóÓÃfopen()´´½¨Ò»¸öÖÐÎÄÎļþÃûµÄÎļþʱÎÊÌâ¾Í³öÀ´ÁË£¬ÎļþÃû¶¼ÊÇÂÒ
Â룡
²é¿´Á˺ܶàÎĵµÊÔÁ˲»ÉÙ·½·¨¶¼½â¾ö²»ÁË£¬±¾À´Ïë×ÅÓñðµÄ·½·¨ÈƹýÕâ¸öÎÊÌ⣬ºöÈ»ÄÔ×ÓÀïÉÁ¹ýWindowsĬÈϵÄÎÄ×Ö±àÂëÊÇansi£¬È»ºóÔÙ
baiduÁËһϣ¬Ö¤ÊµÁËÕâµã£¬ËùÒÔÎÒµÄÍøÒ³Ò²Ó¦¸ÃÊÇansi±àÂë²ÅÄÜʹ´ ......
The define() function defines a constant.
define()º¯ÊýµÄ×÷ÓÃÊÇ£º¶¨ÒåÒ»¸ö³£Á¿¡£
Constants are much like variables, except for the following differences:
³£Á¿[constant]Óë±äÁ¿[variable]ÓкܶàÏàËƵĵط½£¬Òò´Ë£¬ºÜÈÝÒ×»ìÏý£»ÏÂÃ棬ÎÒÃÇÁоÙһϳ£Á¿[constant]Óë±äÁ¿[variable]Ö®¼äµÄ²»Í¬µã£º
A constant's ......
ÔÚÏîÄ¿Öн«ÔÓеÄÉÏ´«¸ÄΪflash¶àÎļþÉÏ´«,µ«ÊÇÕâÆäÖÐÓöµ½Á˸öºÜÓôÃƵÄÎÊÌâ,µ±ÓÐ×öÓû§ÅжÏʱºò,˵°×Á˾ÍÊÇÅжÏcookieµÄʱºò,»ñÈ¡µ½µÄÖµ×ÜÊÇ¿Õ,µ¼ÖÂ×ÜÊÇÈÏΪÓû§Î´µÇ¼....
ºóÀ´ÉÏÍø²éÁËÏÂ,ÕÒµ½Ò»ÆªÎÄÕÂ:
СÐÄswfupload µÄcookie Bug
ʹÓÃSWFUploadµÄʱºòÒ»¶¨ÒªÐ¡ÐÄcookie
bug£ºÔÚ·ÇIEÄÚºËÄں˵Ää¯ÀÀÆ÷ÏÂʹÓÃSWFUpload ......