Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how add confirmation box in php before deleting

echo "<td><a onClick="javascript: return confirm('Please confirm deletion');" href='delete.php?id=".$query2['id']."'>x</a></td><tr>"; //use double quotes for js inside php!
 
PREVIOUS NEXT
Tagged: #add #confirmation #box #php #deleting
ADD COMMENT
Topic
Name
3+5 =