Menu

output to csv or delimited text file????

Help
W4Designs
2008-07-18
2013-06-03
  • W4Designs

    W4Designs - 2008-07-18

    I know with this you can output to a text file on the server. Is there a way to configure it so it outputs to a text file in either a CSV or delimited format, and just keeps appending to the end of the file with each submission?

    Thanks!

     
    • W4Designs

      W4Designs - 2008-07-18

      Would I just setup the processor.php file like this:

      $fileLine = " . $_POST['field_1'] . "," . $_POST['field_2'] . "," . $_POST['field_3'] . "

       
      • TNTEverett

        TNTEverett - 2008-07-18

        Looks OK to me but I think the append feature may not do what you want it to unless you open and read the old file before appending new data to the file. 

         
    • TNTEverett

      TNTEverett - 2008-07-18

      Anything is possible but custom features require custom programming.

       
    • W4Designs

      W4Designs - 2008-07-18

      So if it's going to a file on the server, and after the form is submitted more than once, what would it do with the data other than append to the existing file. it seems to me that it only makes sense that it would append or am I confused?

      Thanks!

       
      • TNTEverett

        TNTEverett - 2008-07-18

        The way you described it sounded like you wanted a single line of data.  If you want a new line for every entry then it should be OK. 

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.