asp line syntax help please

  • Thread starter Thread starter Paul M
  • Start date Start date
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
 
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
 
Back
Top