Why does this confirm() always returns true?

Mathias

New member
<?php
$id = $_GET['id'];
?>
<script type="text/javascript">
var delete_sure = confirm("Are you sure you want to delete the thread with id <?php print($id); ?>?");
if(delete_sure)
{
<?php
$delete = mysql_query("DELETE FROM forum_spg WHERE id='$id'");
?>
}
</script>
 
Back
Top