Confirm before deleting record
I want to confirm a delete before actually deleting from the db. The code on p178 (of the hardcopy book) is confusing. I assume selecting "yes" passes "do=1". How can isset come before this code??
if ( !isset( $_GET['do'] ) || $_GET['do'] = 1) {
?>
<p align="center" style="color:#FF0000">
Are you sure you want to delete this <?php echo $delete_record ?>?<br/>
<a href="<?php echo $_SERVER['REQUEST_URI']?>&do=1">yes</a> or <a
href="index.php">Index</a>
</p>
|