Solved

forward Contact Form 7 form data

Posted on 2011-02-22
12
533 Views
Last Modified: 2012-05-11
I'm using Contact Form 7 in my Wordpress site.  When the user submits the form, I need to forward all the form field data to an email I'm storing in a cookie (cookie.email).  Where would I implement that in either the wordpress plugin or directly in the scripts?
0
Comment
Question by:COwebmaster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 34956707
You will need to use the Contact Form7 to DB Plug-in:
http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/
0
 

Author Comment

by:COwebmaster
ID: 34956753
so if i use that, how would I forward that form submission to the email that's in the cookie?
0
 
LVL 23

Accepted Solution

by:
jeremyjared74 earned 500 total points
ID: 34956817
Sorry about that, I have been using Fast and Secure Contact Form which has the ability to do this from either the regular plug-in or the DB Extension plug-in. I switched a few months back and forgot.

If you would like to check the features of the plug-in I now use here is the page:
http://wordpress.org/extend/plugins/si-contact-form/
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:COwebmaster
ID: 34956852
so by using that, in addition to submitting the email, it will allow me to forward the form data to anyone as well?
0
 

Author Comment

by:COwebmaster
ID: 34956927
looks powerful.  Can it be used in a wordpress widget though and not only a page?
0
 

Author Comment

by:COwebmaster
ID: 34956966
ok, I figured it out, thx!
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 34956967
As long as the widget supports shortcode.

To enable short-codes inside widgets you need to add this to your themes functions.php file. Just before the closing ?> tag at the bottom. Make sure you have FTP access to your website before adjusting the code. Any malformed code will cause it to crash. If you back up the file you can just place it back in you website file system.

Here is the code:
add_filter('widget_text', 'do_shortcode');

Open in new window

0
 

Author Comment

by:COwebmaster
ID: 34957069
ok, thanks!
0
 

Author Comment

by:COwebmaster
ID: 34957071
so now that I'm using that, I wonder how I can send the form using the email in the cookie?
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 34957220
That part is a little more work. You will need to create a new page template by copying your page.php file and pasting it into a text document. You will need to add this code to the top of the page template:
<?php
/*
Template Name: page name here!
*/
?>

Open in new window

You will need to add your header.php code just after that, followed by the page.php code (all inside the custom page).

Then create a new page in your page editor and name it whatever you want. You will then need to add an iFrame to the page:
You will need this plug-in:
http://wordpress.org/extend/plugins/embed-iframe/

The rest is explained here:
http://www.developertutorials.com/tutorials/javascript/sending-cookies-050314-1337/

You will need to do a little improvising to transform it into your plug-in. Just create the form fields instead of creating the form that this suggests.

0
 

Author Comment

by:COwebmaster
ID: 34957311
I have coldfusion on the server too which I can use.  I was going to redirect the page to a cfm page. But how would I push the form field variables to that cfm page?
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 34958049
I will have to look into it tomorrow. I am not sure about coldfusion. I will see how it can integrate into the plug-in. If I come up with how, or a better way I will post it here.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question