/    Sign up×
Community /Pin to ProfileBookmark

Break Character

I need to generate a parameter passed through a form to a site that pre-populates a text area.
The text has several lines of information.
But what do I use as a break character?
Another way of asking the same question, is what does a form text field use as a break character? And whats the URLencoded version of it? Ie, %20, etc.

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@Heavy_MetalAug 01.2005 — im not intirly sure what your askign but the standerd line break in html is <br> im sorry if i answered nothing but like i said im not sure i intirely understand you
Copy linkTweet thisAlerts:
@SuzanneBauthorAug 01.2005 — What character starts a new line of text in a text area. The quick reply box is a text area. WHat character is entered into the text when you hit return. And what is the URLencoded version of the character?
Copy linkTweet thisAlerts:
@Orc_ScorcherAug 01.2005 — That's a simple line feed character, in HTML &#10; or URLencoded %0a.
Copy linkTweet thisAlerts:
@Heavy_MetalAug 01.2005 — ooooooooo i understand now but i still dont know soz
Copy linkTweet thisAlerts:
@SuzanneBauthorAug 01.2005 — Woo Hoo! That works.

Sorry HM, it's one of those questions that although it has a simple answer, it has a difficult question - if you see what I mean!! ha ha!
Copy linkTweet thisAlerts:
@Stephen_PhilbinAug 02.2005 — The line ender generated when enter is hit differs depending on the computer Operating system. I'm pretty sure it goes like this:

Windows: "r"

Linux et al: "n"

Mac: Uses both. Don't know the order though. Might be "rn" or "nr".

I think "r" is %0D and n is %0A. Though I might have those the wrong way round.
Copy linkTweet thisAlerts:
@CharlesAug 02.2005 — I think "r" is %0D and n is %0A. Though I might have those the wrong way round.[/QUOTE]"r", "f" and "n" are there to be non-OS specific. "r" is supposed to represent a carrage return character, no matter what character a given OS uses for that. The "n" should always work to give you a new line.
×

Success!

Help @SuzanneB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...