Results 1 to 4 of 4

Thread: New lines?

  1. #1

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362

    Question New lines?

    I'm useing the code below to add people to my mailing list, however it will not automaticly make a new line for the new entry.
    any ideas on how I can do that?
    PHP Code:
    <?php
    $text 
    implode(":"$_POST);
       
    $text += "\n";
    $fp fopen ("list.txt""a+");
    fwrite($fpimplode(":"$_POST));
    fclose($fp); 
    ?>

    <?php echo implode(":"$_POST);?>
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

  2. #2
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    try \n\r instead of \n

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I've never had a problem just using \n

    But yeah, that'll probably fix it.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Consider using a MySQL database, if you have that option. It's much, much friendlier. more friendly...whatever the grammatically correct way to say that is. You know...
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width