Go to the previous topic.    Go to the next topic.

sort

This field allows you to choose the order in which you wish your variables to appear in the email that FormMail generates. You can choose to have the field sorted alphabetically or specify a set order that the fields will appear in mail messages. By leaving this field out, the order will simply default to the order in which the browsers send the information to the script (which isn't always the same order the variables appear in the form.) When sorting by a set order of fields, you should include the phrase order as the first part of your value for the sort field, then follow with the field names you want to be listed in the email message, separated by commas.

Field syntax

To sort alphabetically:

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

To sort by a set field order:

<input type="hidden" name="sort" value="order:name1,name2,etc" />