Php 我的弹出窗口不';为什么不出现? echo'
我的警报框在HTML中运行良好,但是当我尝试在PHP中回显它时,它不起作用,但是我仍然可以删除它,有人可以帮助我吗?您似乎避开了错误的引号Php 我的弹出窗口不';为什么不出现? echo',php,html,alert,Php,Html,Alert,我的警报框在HTML中运行良好,但是当我尝试在PHP中回显它时,它不起作用,但是我仍然可以删除它,有人可以帮助我吗?您似乎避开了错误的引号 echo '<a href="editContact.php?edit=1&id= '.$pid .'&cid= '.$cid.'"><img src="images/edit.png" width="30" height="30" /></a> <a href="delete.php?cid=
echo '<a href="editContact.php?edit=1&id= '.$pid .'&cid= '.$cid.'"><img src="images/edit.png" width="30" height="30" /></a> <a href="delete.php?cid='.$row["ContactID"].'&id='. $pid . '&createdby='. $row["CreatedBy"] . '" onclick=\"return confirm("Are you sure you want to remove this contact?");\" >
试试这个:
onclick=\"return confirm("Are you sure you want to remove this contact?");\"
…因为您要用单引号而不是双引号来包装echo。您似乎漏掉了错误的引号
echo '<a href="editContact.php?edit=1&id= '.$pid .'&cid= '.$cid.'"><img src="images/edit.png" width="30" height="30" /></a> <a href="delete.php?cid='.$row["ContactID"].'&id='. $pid . '&createdby='. $row["CreatedBy"] . '" onclick=\"return confirm("Are you sure you want to remove this contact?");\" >
试试这个:
onclick=\"return confirm("Are you sure you want to remove this contact?");\"
…因为您正在用单引号而不是双引号包装回音。您不能在“try withonclick=\”返回确认(“您确定要删除此联系人吗?”);“try withonclick=\”返回确认(“您确定要删除此联系人吗?”)中使用“
您不能使用”;”
这很有效
onclick="return confirm(\'Are you sure you want to remove this contact?\');"
echo'
';
这很有效
onclick="return confirm(\'Are you sure you want to remove this contact?\');"
echo'
';
您需要
在PHP中,当变量名用于双引号字符串时,您可能会发现它非常方便。您需要这样做
在PHP中,当变量名用于双引号字符串时,您可能会发现变量名非常方便。文件的扩展名是什么?是.html还是.PHP没有
echo
结尾,您需要";代码>,它是一个输入错误吗?它是一个输入错误,,,,,,,,,,,你的文件的扩展名是什么?是.html还是.php没有echo
结尾,你需要;
,它是一个输入错误吗?它是一个输入错误,,,,,,,,,,,,,