douya5331 2013-05-08 16:53
浏览 35

将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/

  • 写回答

1条回答 默认 最新

  • dpr26232 2013-05-08 17:01
    关注

    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);
    
    评论

报告相同问题?

悬赏问题

  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试