Hello. i need help please for my unsuccessfull program here.
i'd like to make a confirmation before all records to be deleted.
- i use javascript for delete function
- i use submit button to delete
- i use action="<?php echo($PHP_SELF);?>"
to post.
Is it possible to do that function with SUBMIT BUTTON and PHPSELF action?. here is my code..
<head>
function confirm() {
window.confirm ("Are you sure to delete ?")
}
else { return false }
</head>
///showing records here with PHP code
<input type="submit" name="Submit" value="Delete" onSubmit="confirm()">
if ($Submit == Delete) {
///.....delete query here }
Thanks so much for helping me