11 line Php+js to correct the wrong
If after document.location add Baidu website, can function normally.
Maybe JS in the PHP set what is wrong?
------Solution--------------------
Function del () {
if (!confirm ("Are you sure you want to delete these records?") Submitted records will not be deleted! ")) {
Return
}
document.location = "delete1.php?lmbs=
&id=
";
}
Logic problem, your document.location finally get the ID in the string without any value ....
PHP is the server side, JS is the client, your id= Obviously there is no value. The ID here can only be obtained by JS.
Function del ()
{
if (!confirm ("Are you sure you want to delete these records?") Submitted records will not be deleted! ")) {
Return
}
Else
{
Here write the code with JS to get the selected ID, and then use "," merged, as a string to return
//
document.location = "delete1.php?lmbs=
&id=" +ID;
}
}
------Solution--------------------
There are some problems with the above!
As long as your $array[' ID ' has a value, you should be able to get the