We all know how to write and read from a txt file, but I would like to learn how to create a deleting feature that allows each submission to have a delete option.
[php]<?
$gb_file = fopen( “guests.txt”, “a+” );
if ( fwrite($gb_file, “$name\t$email\n”) ) {
$body = “My message Text…\n”;
$body .= “$name\n”;
$body .= “$email\n”;
mail( “my_email@my_domain.edu”,“Guest Book Entry”, $body );
echo “Thanks!
\n”;
}
else {
echo “could not write file…
\n”;
}
?>[/php]
Does anybody know how to do this?