我的按钮“VIEW”不会变成“booking_content.php”的形式,而只是刷新“home.php”的页面
这是我的代码:
$radio = mysql_query("SELECT fldBldgName, MAX(fldTotalDuration) as fldTotalDuration FROM tbldata WHERE fldNetname = '".$get_radio."' AND fldMonth = '".$get_month."' AND fldWeek = '".$get_week. "' GROUP BY fldBldgName ORDER BY id, fldBldgName, fldTotalDuration DESC");
echo "<table class = 'tblMain'>";
echo "<tr align='left'>";
echo "<td><b><u>BUILDING NAME</u></b></td>";
while ($row = mysql_fetch_array($radio))
{
echo "<tr><td align='left'>";
echo $row['fldBldgName']."'>";
echo "<input type='image' src='image/view.png' name='viewBldg' onClick='this.form.action='booking_content.php'; this.form.submit()'>";
echo $row['fldBldgName'];
}
echo "</tr></table>";
我的问题是这个:
echo "<input type='image' src='image/view.png' name='viewBldg' onClick='this.form.action='booking_content.php'; this.form.submit()'>";
* onClick 不会转到 booking_content.php 的页面,而只是刷新页面...
我无法上传我的程序的示例结果...
请单击此链接以便查看我的示例程序: http: //postimg.org/image/wbiigechn/
此外,我的按钮的代码位于字段集中...