States not appearing in proper order

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

I have all 50 states in the taxes array.

I create a drop down menu of the states in the "foreach tax (keys taxes)" loop.

The problem is that although the states are listed in alphabetical order in the config file, they are printed out of order.

Any suggestions for alphabetizing the output of that loop?

Thanks, Mike

-- Mike Lynne (mdlynne@worldnet.att.net), March 29, 1999

Answers

In the readme file it tell's how. The form can also make use of the SORT field, just like FormMail. Add this line for all the states in the order you want them. Replace item1 and item2 and so on for the states. You can all so use the sort feature to sort your e-mail to print out in the order you want. Looks alot nicer that just all jumbled.

Jim

-- James L. Farmer (jim@team-blankets.com), May 30, 1999.


Sorry the code did not show let's try again. # The form can also make use of the SORT field, just like FormMail. # Don't use the #.

Jim

-- James L. Farmer (jim@team-blankets.com), May 30, 1999.


The form can also make use of the SORT field, just like FormMail. ()

-- James L. Farmer (jim@team-blankets.com), May 30, 1999.

Sorry just trying to get the cod to show.

The form can also make use of the SORT field, just like FormMail. input type=hidden name=sort value="order:item1,item2,..." Put > at the end and < at the beging of the line.

Jim

-- James L. Farmer (jim@team-blankets.com), May 30, 1999.


Moderation questions? read the FAQ