I am having a problem with onclick function integrating it with php .Can someone please help
Below is my codes
<html>
<head>
<title></title>
<script language=Javascript>
function delete()
{
val del=confirm(Do you wanto delete the player?);
if(del==true)
{
alert(player Deleted);
}
else
{
alert(record not deleted);
}
return del;
}
</script>
</head>
<?php
Echo “
<a href='delete.php?player_id=$player_id' onclick='delete()'>Delete</a>”
?>