我一直在使用此代码从数据库中删除数据。我喜欢的是,无论何时用户单击图像链接以删除确认功能中的数据,都会提示并要求采取措施,我在此代码中遇到了错误。php使用javascript验证函数的超链接
$delurl = "delete_dish.php?dish_id=".$row['id'];
$img = "<img src = 'images/delete.png'>";
echo "<a href=".$delurl.";
echo "onclick='return confirm('Are you sure you want to delete.')'>".$img."</a>";
也许错误是在双引号或单引号,任何帮助提前
感谢
什么是错误? – Don 2012-08-08 17:50:49