i want to create a simple comment system and i want to use the notepad or access to save the database (COMMENTS ) , i tend to use this codes below but it didnt work , I WANT TO ASK 1- IS IT RIGHT TO USE NOTEPAD FOR IMPLEMENT PHP CODES ? 2- IS IT RIGHT TO WRITE THE ALL PATH OF DESIRED FILE (WHICH I WILL SAVE ON IT ) ? 3- WHY THE COMMENT DIDNT SAVED IN THE NOTEPAD .
<?php
if ($_post)
{
$name = $_POST('name');
$content = $_POST('commentcontent');
$handle = fopen("C:\Users\User\Desktop\simester8\text.txt", "a+");
fwrite($handle,' $name ', ' $content ');
fclose($handle);
}
?>