Title: auto post form info
Last modified: August 31, 2016

---

# auto post form info

 *  Resolved [yelanxiang](https://wordpress.org/support/users/yelanxiang/)
 * (@yelanxiang)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/)
 * Hi, all!
 * I want to post the information people submitted on another page automatically.
   Is there a way to realize it?
 * Thanks in advance!
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Softound Solutions](https://wordpress.org/support/users/softound/)
 * (@softound)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7215940)
 * Hi,
 * You mean to see preview of the submitted informations in another page ?
 *  Thread Starter [yelanxiang](https://wordpress.org/support/users/yelanxiang/)
 * (@yelanxiang)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216042)
 * not exactly, I want to generate a new page with the information I want to show
   automatically after the user submit the information. The page format can be set
   like the email part.
 *  [Softound Solutions](https://wordpress.org/support/users/softound/)
 * (@softound)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216055)
 * you mean create a new wordpress page, and the content would be email message,
   right ?
 *  Thread Starter [yelanxiang](https://wordpress.org/support/users/yelanxiang/)
 * (@yelanxiang)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216056)
 * yes, is there a way to realize that, thanks!
 *  [Softound Solutions](https://wordpress.org/support/users/softound/)
 * (@softound)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216057)
 * yes, i will find and share you the code.
 *  Thread Starter [yelanxiang](https://wordpress.org/support/users/yelanxiang/)
 * (@yelanxiang)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216058)
 * Many thanks!!!
 *  [Softound Solutions](https://wordpress.org/support/users/softound/)
 * (@softound)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216059)
 * You can try this code
 *     ```
       function action_wpcf7_create_page( $contact_form )
       {
       	$new_page = array(
       	  'post_title'		=> 	'Contact-page-' . date('Y-m-d H:i:s'),
       	  'post_content'	=> 	sanitize_text_field($_POST["your-message"]),
       	  'post_status'		=> 	'publish',
       	  'post_type'		=>	'page',
       	);
       	wp_insert_post( $new_page );
       }
       add_action( 'wpcf7_before_send_mail', 'action_wpcf7_create_page');
       ```
   
 *  Thread Starter [yelanxiang](https://wordpress.org/support/users/yelanxiang/)
 * (@yelanxiang)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216060)
 * Thanks, I will try this and let you know the result when I am done! Thank you
   very much!!!
 *  Thread Starter [yelanxiang](https://wordpress.org/support/users/yelanxiang/)
 * (@yelanxiang)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216061)
 * yeah! It works well!!!! Thanks a lot!!!! I will mark the topic as resolved:)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘auto post form info’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [yelanxiang](https://wordpress.org/support/users/yelanxiang/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/auto-post-form-info/#post-7216061)
 * Status: resolved