hi,
i would like to ask the user before executing a DELETE statement if he is sure. i think a msgBox in VbScript in quite nice to do that.
msbbox appears but i get a type mismatch when calling the functions.
would be very apprecheated for help.
greets from austria,
chrizz
function event() {
mysql_free_result($result);
$result = mysql_query(" DELETE FROM landhaus_news1 WHERE ID = $ID ", $link);
}
function redir() {
header("Location: index.php");
}
$text = "would you really like to delete the record?";
echo"
[script language=\"VBScript\"]
Dim promt
Dim ev
Dim re
Function extern()
ev = \"event();\"
ev
end function
promt = \"$text\"
re = \"redir();\"
If MsgBox (promt, vbYesNo) = vbYes Then
extern()
else
redir()
End If
[/script]";