I am trying to send data to the Contact Form DB I have for my WordPress site. The following code doesn’t give any error but it doesn’t post any values. When I check the DB, although the data is getting sent, and I see an empty row of values, but the values are invisible for some reason. I am not to figure out the issue. Thanks
[php]
$data = (Object) array(
‘title’ => ‘Test Form’,
‘posted_data’ => array(
‘First Name’=> $_POST[‘test’],
‘Last Name’ => $_POST[‘test’],
‘Phone’ => $_POST[‘4892892932’],
'City ’ => $_POST[‘Seattle’])
);
//$d = var_export($data);
// $d = (string)$data;
// echo $d;
require_once(ABSPATH . ‘wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php’);
do_action_ref_array( ‘cfdb_submit’, array(&$data));
[/php]