Well, I was hoping I wouldn't have any more questions, but seems like I spoke prematurely. Heres my issue. I have a form:
$userID = $_COOKIE['memberID'];
$rProfile = mysql_query("SELECT * FROM Profiles WHERE ID = '$userID'");
while ($row_profile = mysql_fetch_array($rProfile)) {
$DescriptionMe = $row_profile["DescriptionMe"];
$Headline = $row_profile["Headline"];
$SlidingFeeScale = $row_profile["SlidingFeeScale"];
$TherapeuticMethods = $row_profile["TherapeuticMethods"];
$AcceptingNewClients = $row_profile["AcceptingNewClients"];
$Publications = $row_profile["Publications"];
$Services = $row_profile["Services"];
}
$aForm = array(
'form_attrs' => array(
'name' => 'form_update_profile',
'method' => 'post',
),
'params' => array (
'db' => array(
'table' => 'Profiles', // table name
'key' => 'ID', // key field name
'uri' => '', // uri field name
'uri_title' => '', // title field to generate uri from
'submit_name' => 'submit_update_profile_form', // some filed name with non empty value to determine if the for was submitted,
// in most cases it is submit button name
),
'csrf' => array(
'disable' => true, //if it wasn't set or has some other value then CSRF checking is enabled for current form, take a look at sys_security_form_token_enable to disable CSRF checking completely.
)
),
'inputs' => array (
'header1' => array(
'type' => 'hidden',
'caption' => _t("Practice Information"),
),
'ID' => array(
'type' => 'hidden',
'name' => 'ID',
'value' => $userID,
'db' => array (
'pass' => 'Xss',
),
),
'DescriptionMe' => array(
'type' => 'textarea',
'name' => 'DescriptionMe',
'value' => $DescriptionMe,
'html' => 'true',
'info' => 'Describe yourself.',
'caption' => _t("About Me"),
'db' => array (
'pass' => 'Xss',
),
),
'TherapeuticMethods' => array(
'type' => 'textarea',
'name' => 'TherapeuticMethods',
'value' => $TherapeuticMethods,
'html' => 'true',
'caption' => _t("Therapeutic Methods"),
'db' => array (
'pass' => 'Xss',
),
),
'SlidingFeeScale' => array(
'type' => 'radio_set',
'name' => 'SlidingFeeScale',
'value' => $SlidingFeeScale,
'caption' => _t("Sliding Fee Scale"),
'values' => array (
'Yes' => 'Yes',
'No' => 'No',
),
'db' => array (
'pass' => 'Xss',
),
),
'Headline' => array(
'type' => 'textarea',
'name' => 'Headline',
'value' => $Headline,
'html' => 'true',
'caption' => _t("Short Info for home page"),
'db' => array (
'pass' => 'Xss',
),
),
'Publications' => array(
'type' => 'textarea',
'name' => 'Publications',
'value' => $Publications,
'html' => 2,
'caption' => _t("Publications"),
'db' => array (
'pass' => 'Xss',
),
),
'Services' => array(
'type' => 'textarea',
'name' => 'Services',
'value' => $Services,
'html' => 'true',
'caption' => _t("Services"),
'db' => array (
'pass' => 'Xss',
),
),
'AcceptingNewClients' => array(
'type' => 'radio_set',
'name' => 'AcceptingNewClients',
'value' => $AcceptingNewClients,
'caption' => _t("AcceptingNewClients"),
'values' => array (
'Yes' => 'Yes',
'No' => 'No',
),
'db' => array (
'pass' => 'Xss',
),
),
'header1_end' => array(
'type' => 'block_end'
),
'submit_send' => array(
'type' => 'submit',
'name' => 'submit_update_profile_form',
'value' => _t("Update"),
),
),
);
$oForm = new BxTemplFormView ($aForm);
$oForm->initChecker();
if ($oForm->isSubmittedAndValid ()) {
$provider = $_POST['ID'];
// add additional vars to database, in this case creation date field is added
$aValsAdd = array (
);
if ($oForm->update ($provider, $aValsAdd)) {
$sStatusText = _t("Professional Information Updated Successfully");
}
}
if($sStatusText)
$sStatusText = MsgBox(_t($sStatusText), 3);
return array($sStatusText . $oForm->getCode(), array(), array(), false);
Everything updates in the database, but for some reason, my textareas are just not formatting properly. Instead of getting the line breaks and such, it is just adding like it is a simple text field. See pics. Any help would be greatly appreciated.