asp line syntax help please

P

Paul M

Hi Guys

I have created a jmail send script, the problem is that the body needs to
send about 8 form fields values in the body of the email. At the moment the
body looks something like.

body = Request.Form("desc")& vbCrLf & vbCrLf & "Organization: " &
Request.Form("MC_Organization_Name")& vbCrLf & vbCrLf & "Contact Name: " &
Request.Form("MC_contactname")--and so on

all in one continuous line. If I try and move some of the script to another
line like below the page fails

body = Request.Form("desc")
& vbCrLf & vbCrLf & "Organization: " & Request.Form("MC_Organization_Name")
& vbCrLf & vbCrLf & "Contact Name: " & Request.Form("MC_contactname")--and
so on

How can I use another line without this happening
Thanks
Paul M
 
M

MikeR

Paul said:
Hi Guys

I have created a jmail send script, the problem is that the body needs to
send about 8 form fields values in the body of the email. At the moment the
body looks something like.

body = Request.Form("desc")& vbCrLf & vbCrLf & "Organization: " &
Request.Form("MC_Organization_Name")& vbCrLf & vbCrLf & "Contact Name: " &
Request.Form("MC_contactname")--and so on

all in one continuous line. If I try and move some of the script to another
line like below the page fails

body = Request.Form("desc")
& vbCrLf & vbCrLf & "Organization: " & Request.Form("MC_Organization_Name")
& vbCrLf & vbCrLf & "Contact Name: " & Request.Form("MC_contactname")--and
so on

How can I use another line without this happening
Thanks
Paul M
The line continuation character is an underscore. See:
http://www.microsoft.com/technet/scriptcenter/guide/sas_vbs_dcot.mspx?mfr=true

Mike
 

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

Top