I'm really confused... This seems to have suddenly happened and I'm not sure why.
When I submit a Webform, the submission is successful, and I can even view the data I submitted within the Webform "Results" tab. However, the email notification I receive displays PHP code where it's supposed to display the form results.
Here's what my notification email looks like:
Submitted on Friday, March 9, 2012 - 14:48 Submitted by user: lee Submitted values are:
if(is_object($node)){
$custom_email_values=array();
foreach($node->webform['components'] as $key => $value){
$subvalue = '';
$subvalues=array();
if(is_array($submission->data[$key]['value'])){
foreach($submission->data[$key]['value'] as $key2 => $value2){
$subvalues[$key2]=$value2;
}
$subvalue = implode($subvalues, ', ');
}
$custom_email_values[$key]=array(
'name' => filter_xss_admin($value['name']),
'value' => $subvalue,
);
}
}
drupal_set_message(''.htmlspecialchars(print_r($custom_email_values,1)).'');
The results of this submission may be viewed at:
http://www.mywebsite.com/node/98/submission/31
Does anyone know what may be causing this? I'm tearing my hair out!
Thanks for your help
Comments
Do you have your code in
Do you have your code in between