我有这个数组
$array = [
'A1' => 'Is there a site plan and/or schematic showing location of Source, chambers,
tanks, distribution network including valves, pipes, consumer premises etc.?',
'A2' => 'Are there any procedures and/or written records for the supply? (I.e for
checks, monitoring or maintenance, etc.)?',
.
.
];
这个表
echo ' <tr>';
echo ' <td>';
echo '<select id="riskno1" name="riskno1">';
foreach( $array as $let => $word ) {
echo '<option value="' . $word . '">' . $let . '</option>';
}
echo '</select>';
echo '</td>';
echo '<td></td>';
echo '<td></td>';
echo '<td></td>';
echo ' </tr>';
如何从下拉菜单中获取所选的$let
值,并将其回显/存储在另一个表格单元格中,并在用户显示时将其显示给用户
选择它?
例如,用户从下拉菜单中选择“A1”,我希望在下一个单元格中显示数组的信息(是否有网站计划和/或示意图显示源,房间,储罐,分销网络的位置,包括阀门,管道,消费者处所等?)并存放在某处。谢谢。