Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: for each order

  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts

    for each order

    Is there any way to control the order of
    Code:
     for each name in request.form
    I always assumed it came through in the order it was in the form but it doesnt.
    In the form all the fields are in the order I want them to be and I want to write out the contents of the submitted form in that order for the user to check before confirming the contents and proceeding to the next stage but there are a lot of fields and I dont want to do response.write request.form(name) for every single one of them but they have to be in a specific order.

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    No. How they are sent is browser dependent and not specified in the html specs. You have no way of controlling it.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    bah Ah well that'll be a fun job tomorrow morning lol

    Its a shame since most are in the right place, just the odd one out of place.. rarr


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •