newbie question. I mange to create a database for cf7 to save all the submission. everything work fine but I`m not getting the desire results:
this is what get posted on the database:
a:1:{s:20:"first name";s:5:"Jon";}
I need some guidance on how to save only the name that`s getting submitted, in this case is :Jon
$wpdb->insert( $wpdb->prefix . 'maintenance_forms',
array(
'form' => $submited['title'],
'first_name' => serialize( $first_name ),
)
);
}
well, manage to fix it.
instead of using: 'first_name' => serialize( $first_name ), i switch to: $first_name = array ('First name'=> $submited['posted_data']['associatename']);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.