Please replace the ??? with your data!
- URL to the FORM: http://???
- The browser used: firefox
- cforms version: latest
- Your Wordpress version: 2.8.4
[desc]:
_
i am unable to get the post author details in a particular cform.
i have attached <?php insert_cform('Appraisal Form'); ?> in that post template page. and i want to pick dynamically post author.
and i am using the code in myfunctions.php.
function my_cforms_ajax_filter($params) {
### triggers on your third form
if ( $params['id']=='6' ) {
### do something with field #1
### (! for ajax, all form fields are counted sequentially! !)
//$params['field_1'] = 'Mr./Mrs. '.$params['field_1'];
global $authordata;
$nick = get_the_author();
$mail = get_the_author_email();
@mail('gurpreet.singh697@gmail.com', 'cforms my_filter_Ajax test', 'Form data array (Ajax):'.$mail, 'From: your@blog.com');
//@mail('gurpreet.singh697@gmail.com', 'cforms my_filter_Ajax test', 'Form data array (Ajax):'.$userdata->ID, 'From: your@blog.com');
}
return $params;
}
Thanks
Gurpreet