OK I have the following code

PHP Code:
<?php
$id
= $_POST['id'];
include(
'db.php');

$del="DELETE FROM records WHERE id='$id'";
mysql_query($del);
mysql_close();
echo
"<b><center>Record Deleted</center></b><br><br>";

?>


and I have a form that when I type the ID in it and click submit it deletes the record with that ID And It works fine.

However how can I make it so when I go to

http://www.mysite.com/delete.php?id=1

It deletes the record with ID 1

Thanks to all that help