levani
03-08-2009, 03:13 PM
Hello
I have this php code:
$link = "<a href='" . wp_nonce_url( get_bloginfo('url') . "/wp-admin/post.php?action=delete&post=" . $post->ID, 'delete-post_' . $post->ID) . "'>".$link."</a>";
and want to add this code after a href:
onclick="return confirm('Are you sure you want to delete?')
but no success, everytime I try to do this I get some syntax error.
Please help.
Thanks
I have this php code:
$link = "<a href='" . wp_nonce_url( get_bloginfo('url') . "/wp-admin/post.php?action=delete&post=" . $post->ID, 'delete-post_' . $post->ID) . "'>".$link."</a>";
and want to add this code after a href:
onclick="return confirm('Are you sure you want to delete?')
but no success, everytime I try to do this I get some syntax error.
Please help.
Thanks