Comfirm Delete

A

Anonymous

Guest
Can we see the codes?
So we can help ..

//////////////////////
Also I wanted to ask you a question by the way :D
Do you used the Javascript that (check all) to all recordes sorted in the page?
Like in hotmail.com
Check all E-mails and choose an action 8)
 
Hi,

In the form, you must specify an action which should be a php file. In this file you specify what to do if the user has pressed cancel or submit. It is a good advice to use the following:

if(isset($_POST['cancel']){ // Provided there is a button named cancel in the form
// Do whatever
header('Location: whatever.php');
exit; // This exit is important so as to skip the rest of the file
}

// To use this is important because it can only be executed when coming from a submit in the form, provided there is a button named submit in the form
if(isset($_POST['submit']){
// Whatever
header('Location: whatever.php');
exit; // This exit is important so as to skip the rest of the file
}
 
Back
Top