I have a form that updates multiple records t once in a table containing multiple text fields .
i use a form so users can update that fields.
in the form i have several html editor fields where users can fill in ther text.
i all goes well exept when a user copy and pasted text from a word file. then the whole form does’nt updat e and gives an error.
i use the following script onvalidateSuccces
// zet field STUDENT (double select) om in string
$module = “{module_edit}”;
$module_var = (explode(’,’,$module));
// Loop for elke var uit de string en vult tabel ILP_rooster aan met edit gegevens
foreach ($module_var as $wk_id)
{
/**
- // edit teksten van speciefieke modulen
*/
// SQL statement parameters
$update_table = “ILP_rooster”; // Table name
$update_where = “wk_id = ‘$wk_id’”; // Where clause
$update_fields = array( // Field list, add as many as needed
“wk_afb = ’ {wk_afb}’”,
“wk_doel = ‘{wk_doel}’”,
“wk_omschrijving = ‘{wk_omschrijving}’”,
“wk_faciliteiten = ‘{wk_faciliteiten}’”,
“wk_url = ‘{wk_url}’”,
“wk_opstelling = ‘{wk_opstelling}’”,
“wk_ict_ond = ‘{wk_ict_ond}’”,
);
// Update record
$update_sql = ‘UPDATE ’ . $update_table
. ’ SET ’ . implode(’, ', $update_fields)
. ’ WHERE ’ . $update_where;
sc_exec_sql($update_sql);
}
any suggestions