制作检查按钮 [英] Make Check Button

查看:84
本文介绍了制作检查按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨再次...... :)

请帮助我,如何制作一个复选按钮,这样用户就可以检查哪一个要删除...以及如何用删除来实现它;选中检查按钮?

展开 | 选择 | Wrap | 行号

解决方案

包括行[php]"< td>< input type = \" checkbox\"命名= \"复选框[] \"值= \""

行[id_Customer] QUOT。\" >< / input>< / td>" [/ php]在while循环的第二个 echo 内。


在while循环之前启动表单标记并在之后结束while循环。


制作另一个PHP文件(上面代码中的表单标记的动作)来删除所选的id。[php]<?php

foreach(


_POST [checkbox] as


hi again... :)
please help me,how to make a check button,so the user can check which one to delete...and how to implement it with "delete" selected check button?

Expand|Select|Wrap|Line Numbers

解决方案

Include the line[php]"<td><input type=\"checkbox\" name=\"checkbox[]\" value=\"".


row[id_Customer]."\" ></input></td>"[/php] within the second echo of the while loop.

Start form tag before the while loop and end it after the while loop.

Make another PHP file (action of form tag in above code) to delete the selected id.[php]<?php
foreach(


_POST[checkbox] as


这篇关于制作检查按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆