11 lines of php + js: Error Correction & lt; script & gt; functiondel () {& nbsp; if (! Confirm (& quot; are you sure you want to delete these records? Submitted records cannot be deleted! & Quot;) {& nbsp; return; & nbsp ;}& nbsp; document. location & quot; delete1.php? Lmbs 11 lines php + js for correction
Script
Function del (){
If (! Confirm ("Are you sure you want to delete these records? Submitted records cannot be deleted! ")){
Return;
}
Document. location = "delete1.php? Lmbs = & Amp; id = ";
}
Script
If you add the Baidu website after document. location, the function can be implemented normally.
Maybe something wrong with php in js?
------ Solution --------------------
JScript code
Function del () {if (! Confirm ("Are you sure you want to delete these records? Submitted records cannot be deleted! ") {Return;} document. location =" delete1.php? Lmbs =
& Amp; id =
";}
------ Solution --------------------
There are still some problems with the above!