OK,heres my scenario again. I have a form that is in a block which uses the dolphin variables and such. in this form, i have hidden and non hidden fields. the non hidden fields are type => custom and display data from one of several database tables. example - question 1 is info from a column in table 1, question 2 is the info from a column in table 2, and so on. The hidden fields, are the same values as the non hidden fields, but there are 2 fields that I need help with.
code for one of the 2 fields is as follows:
'header4' => array(
'type' => 'block_header',
'caption' => '<a href="TxPlan.php?client=' . $client . '" onclick="loadDynamicPopupBlock(596, this.href); return false;" class="top_members_menu">' . _t("_Working On") . '</a>',
),
'WorkingOn1' => array(
'type' => 'custom',
'content' => _t("_TxPlan number", ($Tx_Plan_num_rows > 0 ? $Tx_Plan_num_rows : _t("_TxPlan number_no"))), /* This will display a message "The client is currently working on # issues" */
'colspan' => true,
),
'WorkingOn' => array(
'type' => 'hidden',
'name' => 'WorkingOn',
'value' => $WorkingOn, /* I need this to show the actual name of the issues the client is working on to be input into the database as a single line. ex: Relationships, Suicide, Addictions" . So basically, I need this sql statement to be ran on this line -
$client = $this->oProfileGen->_iProfileID;
$Tx_Plan = mysql_query("SELECT issue FROM tx_plan WHERE client_id = $client");
$Tx_Plan_num_rows = mysql_num_rows($Tx_Plan);
while ($Tx_Plan_fields = mysql_fetch_row($Tx_Plan)) {
echo $Tx_Plan_fields[0] . ', ';
}
mysql_free_result($Tx_Plan);
*/
'db' => array (
'pass' => 'Xss', // do XSS clear before getting this value, see BxDolFormCheckerHelper class for all pass* functions
),
),
'header4_end' => array(
'type' => 'block_end'
),