Menu

pipe delimted file not skipping lines

Help
W4Designs
2008-08-25
2013-06-03
  • W4Designs

    W4Designs - 2008-08-25

    I made my processor.php file so it would create the output file as a pipe delimited file so I could import into another application. It used to work so that each submission would skip to the next line with a new record for the new submission. Now all of the sudden, it's no longer going to the next line. How can I make it jump down to the next record for each subsequent submission. Below is my code for the file creation.

    $fileLine = "" . $_POST['field_1'] . "|" . $_POST['field_2'] . "|" . $_POST['field_3'] . "";
    $filename = 'savefile.txt';

    Thanks!
    Buster

     
    • W4Designs

      W4Designs - 2008-08-25

      Ooops, I figured it out. It should have been like such:

      $fileLine = "" . $_POST['field_1'] . "|" . $_POST['field_2'] . "|" . $_POST['field_3'] . "
      ";
      $filename = 'savefile.txt';

       

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.