Revision 307
Added by stefan over 19 years ago
| trunk/wb/modules/form/save_field.php | ||
|---|---|---|
| 61 | 61 |
$values = array(); |
| 62 | 62 |
for($i = 1; $i <= $list_count; $i++) {
|
| 63 | 63 |
if($admin->get_post('value'.$i) != '') {
|
| 64 |
$values[] = $admin->get_post('value'.$i);
|
|
| 64 |
$values[] = str_replace(",",",",$admin->get_post('value'.$i));
|
|
| 65 | 65 |
} |
| 66 | 66 |
} |
| 67 | 67 |
$value = implode(',', $values);
|
| ... | ... | |
| 101 | 101 |
// Print admin footer |
| 102 | 102 |
$admin->print_footer(); |
| 103 | 103 |
|
| 104 |
?> |
|
| 104 |
?> |
|
| trunk/wb/modules/form/view.php | ||
|---|---|---|
| 318 | 318 |
// Now send the email |
| 319 | 319 |
if($email_to != '') {
|
| 320 | 320 |
if($email_from != '') {
|
| 321 |
if($wb->wb_mail($email_from,$email_to,$email_subject,$email_body)) { $success = true; }
|
|
| 321 |
if($wb->mail($email_from,$email_to,$email_subject,$email_body)) { $success = true; }
|
|
| 322 | 322 |
} |
| 323 | 323 |
} |
| 324 | 324 |
// Write submission to database |
| ... | ... | |
| 360 | 360 |
|
| 361 | 361 |
} |
| 362 | 362 |
|
| 363 |
?> |
|
| 363 |
?> |
|
Also available in: Unified diff
Solved ticket #127, commas are now stored as htmlentity in database. Also changed wb_mail to mail in form/view.php.