AM very new to PHP , I am just playing with PHP ,
Am getting data from form via ajax post to php , the data getting added to text file , I want to place that data in order
like
1) username , emailid , etc
2) username , emailid , etc
now its getting added like this without any numbers
username , emailid , etc
username , emailid , etc
below is my PHP code
<?php
//print_r($_POST);
$myFile = "feedback.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$comma_delmited_list = implode(",", $_POST) . "\n";
fwrite($fh, $comma_delmited_list);
fclose($fh);
?>