Online email form with Multiple fields - problem
Hi all,
I am working on an online form which has multiple fields, including radio buttons and a text area.
I am new to asp - so forgive me if this question is really stupid...but how do I get the code to mail all of the fields in the form.
My code is posted below.
I tried putting all of the fields into the textBoby line: objMessage.textBody = Request.Form("PayrollNumber" & vbCrLf & "DeductMembershipFees" & vbCrLf & "DeductPartnerMembershipFees") etc..
But that didnt work.
Is there some sort of code of extra obj.Message tags that can be used to pick up all user entered fields in the form?
(using CDONTS I was able to add all of the fields into the ojbMail.Body line...but dont know cdo well enough....)
<%
If Request.Form("btnSend").Count > 0 Then
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = Request.Form("subject")
objMessage.Sender = Request.Form("from")
objMessage.To = Request.Form("to")
objMessage.textBody = Request.Form("PayrollNumber")
objMessage.fields.update
objMessage.Send
Response.Redirect("confirmation.html")
End If
%>
Cheers
Ishka :confused: