venetianjigsaw
Programmer
I am able to delete an entry from mySQL but want to also display an option to the user [client side] that either confirms the delete or cancels. My problem is this: while I am comfortable in writing the onClick event handler, I am having problems in using it in conjunction with my php script:
<td style='text-align:center;'>
<input
type='button'
value='Delete'
onclick='window.location="return confirm('Are you sure?')"; "delStudent.php?student=<?php echo $myrow["stnum"]; ?>"'
/></td>
Does anyone have an idea as to how I can incorporate my js with php?
Thanks
venetianjigsaw
<td style='text-align:center;'>
<input
type='button'
value='Delete'
onclick='window.location="return confirm('Are you sure?')"; "delStudent.php?student=<?php echo $myrow["stnum"]; ?>"'
/></td>
Does anyone have an idea as to how I can incorporate my js with php?
Thanks
venetianjigsaw