Jump to content

deleting records using button control


kundan

Recommended Posts

Thanks alot sir

it has worked out using another php page script.

but i have directed the new php page by using javascript with

window.location

 

<input type='button' name='DELETE' value='DELETE' onclick='return del($empno);')>

<script>

function del(empno)

{

var answer = confirm ("Are you sure you want to delete the data ?")

if (answer)

{

window.location="empdelete.php?empno="+empno;

return true;

}

else

{

return false;

}

}

</script>

 

but instead of directing to another page can we do it in the same page.

 

Kundan

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.