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 %>
 
Well, why the heck didn't you say so, then! 8)

Oh, yeah. That's right.

<br> tag it is!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top