Script(s)

what I learn is what u c

Linebreaks in TEXTAREA using ASP

leave a comment »

Page1.asp

[textarea name=”txt” cols=”50″ rows=”5″ class=”content”][%=Replace(request.QueryString(“editaddr”),”\n”,vbcrlf)%][/textarea]

Page2.asp

Used for displaying (replace vbcrlf with [br] tag)

[%=replace(request.form(“txt”),vbcrlf,”[BR]”)

can be used for editing (replace vbcrlf with \n)

[input type=”hidden” name=”hidAnswers” value=”[%=Replace(Request.form(“txt28″),vbcrlf,”\n”)%]”]

this \n is changed back to vbcrlf in page1.asp

all angle brackets (

Advertisements

Written by gchandra

October 18, 2004 at 3:02 pm

Posted in Web Coding

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: