Announcement

Collapse
No announcement yet.

Recover a double select field

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Recover a double select field

    Hello, anyone know how to recover a double select field in an edit form?

    With the following complications: twice select field is recharged by another select field, (if you do not charge an onload event).

    When stored in the DB it does so in a string with semicolon-separated fields.

    Thanks in advance

  • #2
    Depending on your configuration you get a string containing values separated by a separator. With the php instruction 'explode' you can create an array of values. Same if you retrieve the value from the database. Does that answer your question? I have a feeling that I might miss something.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Originally posted by aducom View Post
      Depending on your configuration you get a string containing values separated by a separator. With the php instruction 'explode' you can create an array of values. Same if you retrieve the value from the database. Does that answer your question? I have a feeling that I might miss something.
      The function explode the use and everything is fine with that. The issue is that the double charge select the automatic lookup of the form. When insert is ok, but when I want to edit, would have to use another form (editing) to recharge the double select, perhaps explode in an Ajax event, but in turn the double select recharged by the onChange another field. I explain? or my explanation is a mess!

      Thanks in advance

      Comment

      Working...
      X