I don't think that the concept of form field order exists with respect to how headers are submitted. If you examine the headers for different browsers across platforms, I wouldn't be surprised if you will find that form data isn't always sent in the same order. Maybe the relevant RFCs cover whether this is part of the HTTP specification? Point is, there may not be a way for Aparajita to reliably get what you are requesting.
Form data is not part of the headers, it's the body of the message. However, you bring up a valid point -- I'm pretty sure the browser is not obligated to submit the form fields in the order they appear on the form.
Have you considered putting hidden data representing field order in your form or in a session variable? For example a string such as "First_Name,Last_Name,Phone_Number,Address".
Parse this to an array (Active4D makes this really easy). Then loop through the array and retrieve and process the form variables corresponding to First_Name, Last_Name, Phone_Number, Address in that order?
I would concur that this is the best way to handle it. Most automatic form processing scripts I have used require you to put the names of the fields you want to email in a hidden form field. If you do this you could simply use 'split string' to parse the hidden field into form field names in an array, then use those names as keys into the _form collection.
Given the non-guarantee of form field order submission, I think this is the best solution.
Regards,
Aparajita Victory-Heart Productions [EMAIL PROTECTED] www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
