Home >Backend Development >PHP Tutorial >Detailed explanation of the implementation method of php selectradio and checkbox default selection_PHP tutorial

Detailed explanation of the implementation method of php selectradio and checkbox default selection_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:02:33917browse

This is the implementation method of extending the default selection of yibing's select

Copy the code The code is as follows:

< ;select name="wuyeleixing" size="1">












The default selection implementation of radio radio button
Copy Code The code is as follows:

>Blank
>Assignment
>Transfer
>Collective

checkbox checkbox’s default selection implementation
Copy code The code is as follows:

>Furniture
name="fujia_chuju" type="checkbox" value="chuju" >Kitchenware
< font color="#008080" face="楷体_GB2312">name="fujia_woju" type="checkbox" value="woju" >Bedding
< ;font color="#008080" face="楷体_GB2312">name="fujia_TV" type="checkbox" value="TV" >TV

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327926.htmlTechArticleThis is the implementation method of extending yibing's select default selection. Copy the code as follows: select name="wuyeleixing" size= "1" option ?php if($myrow[wuyeleixing]==1) echo("selected");? value...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn