将FirstName / LastName发布到Excel CSV

I currently have a PHP email signup form widget set up to post into an excel csv. The client wanted to add in first name/ last name capture at the last minute.

I can add in the fields, but the data - first name/last name is not appearing in the csv sheet.

Any ideas?

You can see the form at http://kcmediateam.com/barbwebsite/

It's easy using fputcsv, look at my example:

// csv file
$csvFile = "csvFile.csv";
// file handler
$fo = fopen($csvFile, "a+");
// http://php.net/manual/pt_BR/function.fputcsv.php
fputcsv($fo, array(
    'I Am Not',
    'Procrastinating'
));
// always close the handler
fclose($fo);