fill multiple datafields from one dropdown

Results 1 to 4 of 4

Thread: fill multiple datafields from one dropdown

  1. #1
    Join Date
    Dec 1969
    Posts
    3

    Default fill multiple datafields from one dropdown

    Hi folks,<BR><BR>I&#039;m new to this board and have a small problem. I am filling a dropdown with two fields of data dynamically. That works fine. However, when I submit the form I can&#039;t figure out how to split the data from the dropdown back out and fill the two datafields with their respective data.<BR><BR>Any good code snippets or tutorials or even suggestions would be greatly appreciated.<BR><BR>Thanks!<BR><BR>Mark-

  2. #2
    Join Date
    Dec 1969
    Posts
    2,334

    Default try a split

    arrfields=split(request.form("dropdownfield"),"")< BR><BR>I am assuming the two fields in the drop down has a space as separator. If it is something else, change the above statement accordingly.<BR><BR>arrfields(0) and arrfields(1) will have the first and second fields respectively.<BR><BR>Then you can use them in your insert statement.<BR><BR>~Roy

  3. #3
    Join Date
    Dec 1969
    Posts
    3

    Default RE: try a split

    I&#039;m just separating them right now with a letter repeated 3 times. I&#039;ve not done much with splits, unfortunately, though it looks like it&#039;ll be relatively easy once I suss it

  4. #4
    Join Date
    Dec 1969
    Posts
    3

    Default RE: try a split - - Thanks!

    It works perfectly!!<BR><BR>Mark-


Posting Permissions

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