0

how can i appear confirm message box when row are delete (are you sure to delete this record) in php??

echo '<td><a href="teachers_delete.php?Course_Id=' . $row['Course_Id'] .'" ><img src="images/delete.gif" /></a></td>';
4
Contributors
5
Replies
7
Views
5 Years
Discussion Span
Last Post by vibhaJ
0
echo '<td><a onclick="return confirm(\'Are you sure want to delete?\');" href="teachers_delete.php?Course_Id=' . $row['Course_Id'] .'" ><img src="images/delete.gif" /></a></td>';
0

Are you using sessions or a way of protecting your images from malicious deleters?

The js confirm popup is an ugly horrible thing, without a nice way to set the popup title. If you're looking for something a little prettier, search the jqueryui.com site, or there are loads of other ui widgets out there.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.