phpÖлñÈ¡¸´Ñ¡¿òcheckboxÖµµÄÎÊÌâ
ÔÚ×öºªµ¦·¿²úÍøµÄʱºòÓöµ½php»ñÈ¡checkboxµÄÎÊÌ⣺asp»ñÈ¡±íµ¥Öеĸ´Ñ¡¿òµÄÖµ£¬Ö±½Ó¾ÍÊÇÒÔ“,”£¨¶ººÅ£©Îª·Ö¸ô·ûµÄÊý×é¡£phpÖÐÈ·×ÜÊÇÖ»»ñÈ¡×îºóÒ»¸ö¸´Ñ¡¿òµÄÖµ¡£
½â¾ö°ì·¨£º
form±íµ¥µÄ²¿·Ö´úÂ룺
<input type="checkbox" name="frm_tag[]" id="frm_tag" value="1">1
<input type="checkbox" name="frm_tag[]" id="frm_tag" value="2">2
php´¦Àí²¿ÃŵĴúÂ룺
$str_tag = "";
$frm_tag = $_POST['frm_tag'];
for($i=0;$i<count($frm_tag);$i++)
{
echo $frm_tag[$i]."<br>";
if($i==0){
$str_tag = $frm_tag[$i];
}else{
$str_tag = $str_tag.",".$frm_tag[$i];
}
}
echo ($str_tag);
}
ÏÂÃæÊÇÍøÂçÉϵĽâ¾ö°ì·¨¡£Î´¾²âÊÔŶ
µÚÒ»¸ö------------------------------------------------------------------------------------
ÔÚÓõ½checkboxµÄʱºò·¢ÏÖphpÖ»ÄÜÈ¡Ò»¸öÖµ£¬²éÁËÏà¹Ø×ÊÁÏ£¬ÔÒòÈçÏ£º
Php´úÂë
<input type="checkbox" name="weeks[]" id="weeks" value=1>
<input type="checkbox" name="weeks[]" id="weeks" value=2>
<input type="checkbox" name="weeks[]" id="weeks" value=3>
<input type="checkbox" name="weeks[]" id="weeks" value=1>
<input type="checkbox" name="weeks[]" id="weeks" value=2>
<input type="checkbox" name="weeks[]" id="weeks" value=3>
weeksºóµÄÖÐÀ¨ºÅ²»¿É©£¬·ñÔòÓÃPHP»ñÈ¡µÄʱºòÖ»ÄÜÈ¡µ½×îºóÒ»¸öÖµ¡£Ö®ºóPHP¾ÍºÜºÃ´¦ÀíÁË£¬ÈçÏÂ:
Php´úÂë
·½·¨Ò»£º
$weeks = $_POST['weeks'];
for($i=0;$i<count($weeks);$i++)
echo $weeks[1]."<br>";
·½·¨¶þ£º
$array = $this->request->getParameter("weeks[]");
$str =implode(',',$array);
echo $str;
µÚ¶þ¸ö=================================================
PHP½ÓÊÕ¶à¸öͬÃû¸´Ñ¡¿òÐÅÏ¢²»ÏñASPÄÇÑù×Ô¶¯×ª»»³ÉΪÊý×飬Õâ¸øʹÓôøÀ´ÁËÒ»¶¨²»±ã¡£µ«ÊÇ»¹
ÊÇÓнâ¾ö°ì·¨µÄ£¬¾ÍÊÇÀûÓÃjavascript×öÒ»ÏÂÔ¤´¦Àí¡£¶à¸öͬÃû¸´Ñ¡¿òÔÚjavascriptÖл¹ÊÇÒÔÊý×éµÄ
ÐÎʽ´æÔڵģ¬ËùÒÔÔÚ±íµ¥Ìύ֮ǰ¿ÉÒÔÀûÓÃjavascript°Ñ¸´Ñ¡¿òÖе
Ïà¹ØÎĵµ£º
»·¾³Èí¼þ°æ±¾½éÉÜ£º
APACHE 2.0.59
PHP5.2.3
MYSQL5.0.45
GD-2.0.35
Zend Optimizer v3.3.0
&n ......
Ò»¡¢¹æ·¶Ç°ÑÔƪ
±ê×¼»¯²»ÊÇÌØÊâµÄ¸öÈË·ç¸ñ£¬ËüÈóÌÐòÔ±¿ÉÒÔÁ˽âÈκδúÂ룬ŪÇå³ÌÐòµÄ×´¿ö£»ÐÂÈË¿É
ÒԺܿìµÄÊÊÓ¦»·¾³£»·ÀֹнӴ¥phpµÄÈËÒ»´Î´ÎµÄ·¸Í¬ÑùµÄ´íÎó£»ÔÚÒ»ÖµĿª·¢»·¾³Ï£¬
¿ÉÒÔ¼õÉÙÈËÃÇ·¸´íµÄ»ú»á¡£±¾¹æ·¶µÄ±ê×¼ÔÚ¾ø¶Ô¶àÊýÓ¦ÓÃÉÏΪ·ÂÕÕjava¼¼ÊõÌåϵ£¬ÒòΪ
java¼¼ÊõÌåϵÒÔÆäÖÚ¶à³É¹¦µÄ°¸Àý³ÉΪ´ó²¿·Ö¼ÆËã»úÓ¦Ó ......
PHP ×Ô¶¨Ò庯ÊýʵÏÖϵͳº¯Êý¹¦ÄÜ
×ÜÊÇÓñðÈËдºÃµÄº¯Êý ÊDz»ÊǾõµÃ²»Ë¬?ºÃ,ÏÂÃæ¸ú×ÅÎÒÀ´Ð´°É~~ÒÔÏ´úÂëÈ«²¿ÓÉ×Ô¼º±àд,¾øÎ޳Ϯ֮ÏÓ~~ÏÖÌùÉÏ,½ö¹©²Î¿¼.(¿ÉÄÜÓÐЩ¹¦ÄÜûÓÐдȫ)
˵Ã÷Ò»ÏÂ,дϵͳº¯ÊýÔÙÄÃÀ´Ê¹ÓÃȷʵºÜ´À,µ«Ö»ÊÇ×÷ΪÁ·Ï°,»¹ÓÐ,ÔÚÃæÊÔʱȷʵÊÇËã·¨¿¼µÃ¶à,ÍøÉÏÕÒÀ´µÄÃæÊÔÌâÒ²´ó¶¼Òª¿¿Ëã·¨\Óï·¨ÊìÁ·²ÅÄÜ ......
Ò». Ê×ÏÈ×öÒ»¸ö¼òµ¥µÄsoÎļþ£º
/**
* hello.c
* To compile, use following commands:
* gcc -O -c -fPIC -o hello.o hello.c
* gcc -shared ......
¡¡
¡¡PHP Ö§³Öcurlº¯Êý(ÔÊÐíÄãÓò»Í¬µÄÐÒéÁ¬½ÓºÍ¹µÍ¨²»Í¬µÄ·þÎñÆ÷). curl
ÊÇʹÓÃURLÓï·¨µÄ´«ËÍÎļþ¹¤¾ß£¬Ö§³ÖFTP¡¢FTPS¡¢HTTP HTPPS SCP SFTP TFTP TELNET DICT
FILEºÍLDAP¡£curl Ö§³ÖSSLÖ¤Êé¡¢HTTP POST¡¢HTTP PUT ¡¢FTP
ÉÏ´«£¬kerberos¡¢»ùÓÚHTT¸ñʽµÄÉÏ´«¡¢´úÀí¡¢cookie¡¢Óû§£«¿ÚÁîÖ¤Ã÷¡¢Îļþ´«Ëͻָ´¡¢http´úÀí ......