B
Bonnie
I am working on sending form results to email with ASP
code. I had it working ok until I tried to build the body
of the email. There are several fields on the form and I
want to build the body of the email by showing only the
fields that were filled in by the user (don't show null
ones)
I am doing it like this:
Dim strBody
If Request.Form("Outlook") <> "" Then
strBody = strBody & "Outlook : "
strBody = strBody & Request.Form("Outlook") & Chr(13)
End if
......
And I repeat the IF statements for each field on the form
in order to build the body of the email. For some reason,
it's not working.
Am I coding the IF statements correctly?
Thanks
Bonnie
code. I had it working ok until I tried to build the body
of the email. There are several fields on the form and I
want to build the body of the email by showing only the
fields that were filled in by the user (don't show null
ones)
I am doing it like this:
Dim strBody
If Request.Form("Outlook") <> "" Then
strBody = strBody & "Outlook : "
strBody = strBody & Request.Form("Outlook") & Chr(13)
End if
......
And I repeat the IF statements for each field on the form
in order to build the body of the email. For some reason,
it's not working.
Am I coding the IF statements correctly?
Thanks
Bonnie