Help with sorting form fields - TechRepublic
General discussion
August 21, 2002 at 04:45 AM
dnk1260

Help with sorting form fields

by dnk1260 . Updated 23 years, 9 months ago

I recently desinged a pretty simple form (mixture of text fields, radio buttons, and menus) and I’m having a problem with how my server sorts the fields. When I receive the form email, all the fields are completely out of order. I’ve tried adding a hidden sort field to specify the order

but it didn’t solve the problem. Is there any other code I could use? Maybe something to add into the ASP file?

Here is the code for the ASP file (sendmail.asp) I’m currently using:

<% for each key in request.form eBody = eBody & key &": " &request.form(key) &chr(10) next SET JMail = Server.CreateObject("JMail.smtpmail") JMail.ServerAddress ="formmail.strongsecure.com" JMail.Sender = request.form("Email") JMail.Subject = "KK Form" JMail.AddRecipient "info@kksound.com" JMail.Body = eBody JMail.Execute SET JMail = Nothing %>

Thanks.

This discussion is locked

All Comments