Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Replacing new lines in multi line text box form fields with <br>.

by wfsp (Abbot)
on Nov 26, 2004 at 09:16 UTC ( [id://410533]=note: print w/replies, xml ) Need Help??


in reply to Replacing new lines in multi line text box form fields with <br>.

On processing form data, w3c says:

"Line breaks are represented as "CR LF" pairs (i.e., `%0D%0A')."

This can catch you out if you test the script on one platform (win) and run it on another (unix) because newlines are treated differently.

It looks like tachyon's reply will catch both cases.

  • Comment on Re: Replacing new lines in multi line text box form fields with <br>.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://410533]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found