我有一个mastertbl时间表网络应用程序的表单表,其中每一行代表员工完成的唯一条目,每行都有选项 3 单选按钮(仅对管理员可见),管理员在阅读员工完成的条目时选择单选按钮,然后提交完整的表格(让我的表格有 140 个条目)。
下面是admindashboardentry.php表格的行和标题(包含表单标签)功能的内容如下:
//Webpage Table Heading
function displayTableHeading(){
echo "
<form action='selected.php' method='post'>
<table border='1' cellpadding='10' cellspacing='0'>
<tr>
<th colspan='13'><button type='submit' class='btn btn-primary' style='border-radius: 8px;'><i class='fas fa-edit' style='margin-right:10px;'></i>Update</button>
</tr>
<tr>
<th>EmpID - Name</th>
<th>Date</th>
<th>Start Time</th>
<th>End Time</th>
<th>Hrs</th>
<th>Project Code</th>
<th>Task Performed</th>
<th>Modified Date</th>
<th>Invoice Num</th>
<th colspan=3>Status</th>
</tr>";
/*echo "
<tr>
<th colspan=13><input type='submit'/></th>
</tr>";*/
}
但问题是selected.php
我的表只有 100 行,而我的表有 140 个条目。我可以对表的 name 属性进行任何更改(实际上是在制作 php 数组)?还是name属性的大小有限制?
Smart猫小萌