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

WBOY
Release: 2016-07-21 15:02:33
Original
888 people have browsed it

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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template