Hi,
Thanks for your reply. I already read the manual, but the script below doesn't work (I'm not using a form here yet).
$row = 1;
$fp = fopen ("test.csv", "r+") or die ("could not open file");
while ($data = fgetcsv ($fp, 1000, ","))
{
$num = count ($data);
print "<p> $num fields in row $row: <br>";
$row++;
for ($c=0; $c < $num; $c++) // for each form variable
{
fwrite($data[$c], "some new data"); // what's wrong here?
print $data[$c] . "<br>";
}
}
fclose ($fp);