how can i control the order that form elements appear in the body of a cdonts created email.
i.e. The form elements on the html page are ordered but when they are passed into the email body, using the following script, the order seems random!
Some of the form elements are generated on the fly from a dataset, with a checkbox being included on the form for each record in the dataset.
Thanks
i.e. The form elements on the html page are ordered but when they are passed into the email body, using the following script, the order seems random!
Some of the form elements are generated on the fly from a dataset, with a checkbox being included on the form for each record in the dataset.
Code:
<%
strBody = ""
FOR EACH item in request.form
strBody = strBody & item & vbcrlf & request(item) & vbcrlf
NEXT
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From="website@xxxxx.co.uk"
objMail.To="jon@xxxxxxxxx.co.uk"
objMail.Subject="Website Enquiry"
objMail.Body=strBody
objMail.importance=1
objMail.Send
Set objMail = nothing
response.redirect "../home.asp?contentid=26"
response.end
%>
Thanks