Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Serialize and Save an Array 23 Mar 2012 03:16 #1711

  • fritz
  • fritz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
I've swapped out a textbox to be a multi-select list for a front end form and changed the name of the field to an array. It basically looks like this:

<select size="10" name="options[]" multiple="multiple">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>

My question is, which file and lines do I need to change in order to serialize my array so I can save it to a string field in my DB table?

Thank you.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.052 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started