#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2010
    Posts
    1
    Rep Power
    0

    PHP forms playing tricks on me


    Hi, would anyone happen to know why my php forms come into my email looking like below? Some lines are perfect then all of a sudden if someone enters a longer input, the forms do this: (look at Additional Truck info) - I was told this is a "limitation of php?!!!!" doesnt sound right --- thanks!

    Trucker Signup from Web Site
    IP Address : 107.194.227.13
    First Name : Galeet Lee Levy
    Last Name : Galeet Lee Levy
    Company : Nex Graphics & Web Designs
    Business City : Woodland Hills
    Address : 21777 Ventura Blvd Suite #217
    Business State : CA
    Business Zip : 91364
    Home Phone : 818-888-8235 x222
    Business Phone : 818-888-8235 x233
    Cell Phone : X789652363236333333
    Home State : CA
    Home Address : 23337 Sandalwood Street
    Home City : West Hills
    Home Zip : 91307
    Additonal Truck Info : More trucks hetre Email : 800-856-6666 License No : X785693 Number Of Trucks : 1 Own Truck : No Owner Or Leasing Co : Life Insurance Company GPS Device : Yes Insurance Co : State Farm Insurance Company Truck 1 - Model - Year : Rango Rango Rango 1986 Trailer 1 - Model : X8569 Trailer 1 Length : 150 Trailer 1 Width : 60 Trailer 1 Height : 52 Trailer 2 Length : 150 Trailer 2 Width : 150 Truck 2 - Model - Year : Weston West Weston 2008 Trailer 2 - Model : U85696 Trailer 2 Height : 150 Trailer 3 Length : 80 Trailer 3 Width : 90 Truck 3 - Model - Year : Test test test Test Tes Trailer 3 - Model : 856965633 Trailer 3 Height : 90 Route 1 : 101 Route 1 States : CA, CO, SD Route 3 :
    Route 4 :
    Route 3 States :
    Route 4 States :
    Route 5 :
    Route 6 :
    Route 7 :
    Route 8 :
    Route 5 States :
    Route 6 States :
    Route 7 States :
    Route 8 States :
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2005
    Location
    Vancouver, WA, USA
    Posts
    397
    Rep Power
    189
    Have you tried formatting your emails as HTML?
    Thomas Tremain
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    13
    Rep Power
    0
    I agree - coding the output in HTML will get around this, but I have also noticed the same errors on my plain text emails. This is to do with the actual email client rather than the formatting, so if you use Outlook, it might state something like "line breaks have been removed... click here to add line breaks"
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2002
    Location
    Seattle, U.S.A.
    Posts
    712
    Rep Power
    13
    Try explicating setting end of line,

    e.g.

    PHP Code:
    Additional Truck: <?php echo $addition_truck_text PHP_EOL ?>

IMN logo majestic logo threadwatch logo seochat tools logo