Revision 254
Added by ryan almost 19 years ago
view.php | ||
---|---|---|
241 | 241 |
if($field['type'] != '') { |
242 | 242 |
if(!empty($_POST['field'.$field['field_id']])) { |
243 | 243 |
if($field['type'] == 'heading') { |
244 |
$email_body .= ' |
|
245 |
|
|
246 |
'.$_POST['field'.$field['field_id']]; |
|
244 |
$email_body .= $_POST['field'.$field['field_id']]."\n\n"; |
|
247 | 245 |
} elseif (!is_array($_POST['field'.$field['field_id']])) { |
248 |
$email_body .= ' |
|
249 |
|
|
250 |
'.$field['title'].': '.$_POST['field'.$field['field_id']]."\n"; |
|
246 |
$email_body .= $field['title'].': '.$_POST['field'.$field['field_id']]."\n\n"; |
|
251 | 247 |
} else { |
252 |
$email_body .= ' |
|
253 |
|
|
254 |
'.$field['title'].": \n"; |
|
248 |
$email_body .= $field['title'].": \n"; |
|
255 | 249 |
foreach ($_POST['field'.$field['field_id']] as $k=>$v) { |
256 |
$email_body .= ' |
|
257 |
|
|
258 |
'.$v; |
|
259 |
} |
|
250 |
$email_body .= $v."\n"; |
|
251 |
} |
|
252 |
$email_body .= "\n"; |
|
260 | 253 |
} |
261 | 254 |
} elseif($field['required'] == 1) { |
262 |
$required[] = $field['title']; |
|
255 |
$required[] = $field['title'];
|
|
263 | 256 |
} |
264 | 257 |
} |
265 | 258 |
} |
Also available in: Unified diff
Fixed spacing with form submissions