dpps0715 2011-03-22 19:53
浏览 15

在php中通过邮件获取复选框值

I'm getting database from database and each row has a id and im showing it like this in html

<td><input type="checkbox" value"1">test1</td></tr>    
<td><input type="checkbox" value"2">test2</td></tr>  

and so on...

now lets say that user checked ten check boxes out of 15 and then clicked submit .
how to get values of those boxes in php???

  • 写回答

4条回答 默认 最新

  • dqc18251 2011-03-22 19:56
    关注

    give the checkboxes names:

    <td><input type="checkbox" value"2" name='test'>test2</td></tr>  
    

    Than in php just read the request

    $test = $_REQUEST['test']
    

    if the OP doesn't have these checkboxes inside of a , any amount of PHP code will make absolutely no difference (FROM Blender)

    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题