PDA

View Full Version : Sort order in mail form


Kay
11-27-2002, 08:02 PM
I'm using Formmail 1.92 on our website.
I work for a non profit organization that accepts donations through a pledgeform that can be filled in on-line.
The form works fine, but since our server moved to another location, the fields now automatically sort themselves in alphabetical order, rather than remain in the order the form is set up.
I really don't know anything about cgi or perl, except for the fact that the form only works with a .cgi extention. The .pl extention does not work.
Is there a way I can edit the formmail so it will NOT sort alphabetically?
Any suggestions more than welcome.
TIA.

Philip M
11-29-2002, 06:34 PM
Something strange here.

The sort field is optional.

By leaving this field out, the order will simply default to the order in which the browser sends the information to the script (which is usually the exact same order as they appeared in the form.)

Look at the form and check that the following DOES NOT appear:-

<input type=hidden name="sort" value="alphabetic">

Kay
11-30-2002, 04:04 AM
Thank you - I'll look it over when I get to work Monday.

Kay
11-30-2002, 09:36 PM
Thank you, Philip.

This thing was bugging me, so I ftp-ed the form onto my home computer and found the culprit.
Somebody added the alphabethical sort order to the form after we moved to a new server !:mad: . - the line you said shouldn't be there.
It's commented out now, and all is well.
Thanks for the crash course in form setup :)