Dear Sir, I have folloiwng codes

PHP Code:
if(isset($_POST['delete']))
    {
        
// Get values from form 
        
$sno $_POST['txtsno'];
        
$pro $_POST['txtpro'];
        
$wet $_POST['txtwet'];

$query "delete from test WHERE sno={$sno};
$result mysqli_query($con$query);
            
if(!
$result){
echo 
"<script>alert('Record not deleted')</script>";
}else{
echo (
"<script>alert('Record deleted successfully')</script>"); 
}

It works fine, but I want to need a confirmation box like this before deleting record

http://i42.tinypic.com/15mzc6g.jpg

Please help