Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get page breaks from reqeust.form(someTextArea)

Status
Not open for further replies.

blueindian1

Programmer
Apr 24, 2001
150
US
Hello,

Page 1 has this code:

<textarea name=&quot;strShipToName&quot;>
<%=strShipToName%>
</textarea>


on the screen, it contain this value:
PO BOX 809123
46 STAFFORD ST
LAWRENCE, KS 000000000
US


Page 2 has this code:

shipTo = request.form(&quot;strShipToName&quot;)

<tr>
<td>
<%=shipTo%>
</td>
</tr>


HOWEVER, on the screen it diplays as
PO BOX 809123 46 STAFFORD ST LAWRENCE, KS 000000000 US

NOTE THE LACK OF LINE BREAKS!!!

anyone know why this is? i know the var value gets urlencoded with &quot;%0D%0A&quot;, and i've tried replacing the value with &quot;<BR>&quot; and char(13) but to no avail. to make it even more madening, if i print the value to log, it will have the line breaks.

thanks to anyone who can help

rich

 
try this:

Code:
shipTo = Replace(request.form(&quot;strShipToName&quot;),vbcrlf,&quot;<BR>&quot;)
Tony
reddot.gif WIDTH=300 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top