Vbscript Line breaks

  • Thread starter Thread starter Paul C
  • Start date Start date
P

Paul C

Hi
I am displaying an address using vbscript and asp but the text displays in a
long line. How do I get it to display like

Paul m
my road
my postcode

instead of
Paul m my road my postcode

Thanks Paul M
 
<%
Response.write "Paul m" & "<br>"
Response.write "my road" & "<br>"
Response.write "my postcode"
%>

Or

<% Response.write "Paul m" & "<br>" & "my road" & "<br>" & "my postcode" %>

Or if they are variables
(say FullName, Streeet, Postcode)

<% = FullName & "<br>" & Streeet & "<br>" & Postcode %>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi
| I am displaying an address using vbscript and asp but the text displays in a
| long line. How do I get it to display like
|
| Paul m
| my road
| my postcode
|
| instead of
| Paul m my road my postcode
|
| Thanks Paul M
|
|
 
<%
Dim sname,sRoad,sPostCode
Dim lb
lb = "<br>"
sName = "my name"
sRoad = "my Road"
sPostCode = "Post Code"
%>

<%= sName & lb & sRoad & lb & sPostCode %>
 
Back
Top