[thelist] ASP and form question

Joel Canfield joel at spinhead.com
Mon Jul 8 17:58:01 CDT 2002


> Two: (I would do this personally. I believe this was
> suggested earlier as well.) Dim strBody strBody = "address: "
> & Response.Form("address") & vbCrLf strBody = "city: " &
> Response.Form("city") & vbCrLf ... objMail.Body = strBody
>
> This concatenates as string then assigns it to the .Body object.

Good suggestion, except with each form field, you're *overwriting* strBody.
To concatenate, it should be:

strBody = "address: " & Response.Form("address") & vbCrLf
strBody = strBody & "city: " & Response.Form("city") & vbCrLf
Etc.

joel



More information about the thelist mailing list