Trying to make my own news PHP Script. I currently have it so you can post scripts, etc., and they store in a file/text document.
Ok, so, I need it, so, theres a delete button (I can make it), but when clicked, it will delete the news post. I believe its a simple filehandler thing, like:
Code:
if(isset($POST_['submit'])) {
$fhdelete = fdelete("news/news.php");
$fhdelete;
}
As you can see, I have $fhdelete defined, I just need to know how to make it actually work, Lol? I believe it's just a simple "$fhdelete;" But idk.
I also need a script to open the text document on a page to edit it, you know? All help will be appreciated if it works and I will Rep++ and vouch! Thanks!