我是 PHP 编码的新手,请帮助我。这是我的代码:
echo "<td id=\"row\" align=\"center\">" . $row['id'] . "</td>";
echo "<td id=\"title\" align=\"center\">" . $row['Title'] . "</td>";
echo "<td id=\"prodname\" align=\"center\">" . $row['ProductName'] . "</td>";
echo "<td id=\"amt\" align=\"center\">" . $row['Amount'] . "</td>";
$amt = $row['Amount'];
echo "<td id=\"row\" align=\"center\">" .
"<select id=\"testing\" onchange=\"GetSelected (this,$amt)\">
<option value=\"100\">100g</option>
<option value=\"250\">250g</option>
</select>" . "</td>";
echo "<td>" . "<input type=\"button\" value=\"Add\">" . "</td>";
单击“添加”按钮后,我需要将行值存储在数组或变量中。