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.065 seconds

Just wanted to congratulate you on the J-Cook website / web development tool. In a couple of visits I've had a play around with Cook and have to say I think it is fantastic.  I've played with a number of component builders in the past and yours is certainly looking like the best so far. I'd also like to help you spread the word - I'm really surprised more people aren't excited about this tool. Good luck with the project.
Dean

Get Started