The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

any php/html gurus out there -- need help by leistico 2006-03-24 15:13:59
Hi...

I've RTFM'ed 'til my eyeballs are falling out...

What I'm trying to do is an html form that works a lot like this one right here. Typing into a textarea, and then sending the resulting text to a preview page, just like this comment page. I've gotten it to preserve my quotes and whatnot with stripslashes(), but no carriage returns or line feeds are showing up.

The line feeds return properly when I go back to the edit form (i.e. everything is as it was typed in, in the textarea), but when I go to just plain print the text, all the paragraphs are replaced with just a space--no line feed.

I'm printing the $_POST variable as a diagnostic separately, and there're no escape characters present representing cr's, lf's, \n's or anything. All my quotes are escaped properly, but I need to preserve the line feeds... any ideas, great UFicle?

Thanks
sean

[ Reply ]
  For some reason, I'm thinking a textarea doesn't by merlin2006-03-24 15:16:20
    just checked... by leistico2006-03-24 15:23:50
      still not working.. help flag still raised... by leistico2006-03-24 15:35:02
        Never mind -- found a kludge by leistico2006-03-24 15:43:06
          It's because how HTML works. by Deverant2006-03-24 16:28:15
  PHPs nl2br might help by imdead2006-11-19 12:55:59
    For Teh Win! by leistico2006-03-24 15:57:57

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)