Hab mein Problem selbst loesen koennen..
Lösung:
//-------------------//
//-deleteproduct.php-//
//-------------------//
<script language="JavaScript" type="text/javascript">
var Check;
function ConfirmDelete()
{
Check = confirm("Are you sure you want to delete this product ?");
if (Check == true)
{
document.confirmed.submit();
}
else alert('');
}
</script>
<?php...
?>
</table>
<br><br>
<form name="deleteproduct">
<input type="button" name="deletebutton" value="Delete Product" onclick = "ConfirmDelete()">
</form>
<form name="confirmed" method="post" action="showproducts.php">
<input type="hidden" name="theID" value="<?php echo $ID;?>" >
</form>
</center>
//-------------------//
//-showproducts.php-//
//-------------------//
<?php
if (isset($_POST["theID"]))
{
if (isset($_POST["theID"]))
$ID = $_POST["theID"];
$exec = mysql_query("DELETE FROM Product WHERE ID = '$ID'") OR die (mysql_error());
}
?>
.
.
.