Its simple just use the below code
<form method="POST" action="ansar.php">
<input type="hidden" name="accountid" value="23948234">
<input type="submit" name="delete"
'Are you sure you want to delete?');">
This is simple code when you click the delete button the confirmation window is popped up.. if you click on yes the form will submit if no the form is not submitted.. You can use same or modify as you like.
Jayaprasad Rao K <jprao@...
My application is like, when I press a function button (with Java
aplet), a PHP function will be called where I delete one record in
Now, I would like to add confirmation window, that is, once the delete
function button is pressed, one more confirmation window should appear
(with YES/NO option) and delete the record only if I click YES.
How to do this with PHP ?
Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
[Non-text portions of this message have been removed]