[phorm] [Phorm:] Write correct array to database?

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 25 Aug 2004 16:12:57 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#4292) Write correct array to database? 
            <http://www.phorm.com/support/?rev=4292> 
  AUTHOR:   Steve 
  DATE:     August 25, 2004 at 12:12 p.m. EST 

Hey All, 

I'm building a new form with checkboxes, and need to write the results to my 
database. I tried ArrayToList, but it is not correct. 

I'd like to write the actual values to the database seperated by commas, or 
other delimiter. 

In my config I have: 

$interest[1] = "Kayaking"; 
$interest[2] = "Traveling"; 
$interest[3] = "Wildlife"; 

And when I use ArrayToList($interest); I get the following written to my 
database: 
3, Kayaking, Traveling, and Wildlife 

Where the "3" is the item that is checked. What do I need to change to have it 
just write the checked items value? Not the number, and all descriptions. 

Thanks in advance! :) 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] Write correct array to database?