I need to build upon a contact form 7 plugin to pass the inputs as $_POST into a second page upon submit. Google has proved rather fruitless with this. Does anyone have an idea of how to do this/where I can find a solution?
Thanks in advance
Dan
Use this plugin: http://wordpress.org/extend/plugins/contact-form-7-3rd-party-integration/
But if you prefer to do it manually - basically this is the hook you should use: wpcf7_before_send_mail
Related
I'm trying to build something in order to write the data from the WPCF7 form to some kind of database..
Is this possible?
I assume I will have to use some PHP for this? Where do I need to code this? Which file/page/...
Hosting is by Godaddy.
Thanks a lot!
I have applied a contact form 7 in a page and want to store the values in backend also. Right now values are going to email id. Please help me. Thank you
Looking on the home page it seems you can install flamingo plugin to do exactly that wordpress.org/extend/plugins/contact-form-7. Link to flamingo wordpress.org/extend/plugins/flamingo
Hook the plugin before the mail is sent.
function save_email (&$WPCF7_ContactForm) {
# write the code to get the email address
# and save it to your database
# you might want to use print_r($WPCF7_ContactForm)
# to get the values used by the form
}
add_action("wpcf7_before_send_mail", "save_email");
This plugin might help you if you are not into coding your own stuff.
I am struggling to find out if I can do this but I have a cakephp form with many input fields and when submitted I write them to a text file I can add fields in dynamically here by clicking a button but:
My question is if I have an admin page how do I get that to dynamically add fields to the page and make them stay there forever not just for that session?
Really stuck figuring out how to do this any guidance would be much appreciated.
Thanks in advance.
Make them persistent. You need to store the form and the fields it has: "Form hasMany FormField". The fields should describe a type so that the FormHelper will render the correct inputs.
When you want to display the form read that information from the db again and render the form according to your stored information.
I am guessing you already have a javascript function that dynamically adds the field to your admin page. Is that correct?
I don't use CakePHP, but a general workaround I use is to use the javascript function to at the same time update a table in the database that stores the form layout.
Here are some Jquery Form builder plugins that you can use to achieve the goal.
http://www.berthou.com/us/2009/09/05/dynamic-forms-builder-with-jquery/
https://github.com/botskonet/jquery.formbuilder
http://code.google.com/p/jquery-form-builder-plugin/
http://www.elizaibeth.com/2010/11/23/dynamic-jquery-form-builders/
Here is an excellent link of PHP FormBuilder class with tutorial, that you can use as a vendor library into CakePHP.
I got the jquery part of the jquery dynamic form from this website http://code.google.com/p/jquery-dynamic-form/ working great. Now I can't for the life of me, figure out how to get the form data into an email using PHP. Any help or suggestions?
Try doing print_r($_REQUEST);, to see what's being sent on the form. From there, you'll know how to access it.
I am working on a new system and am stuck at a point with jquery + ajax.
My problem is this, how can i validate multiple fields in my registration form using ajax. I don't want to create a separate validation for each input fields.
can you help me guys, please. :-(
Thanks a lot.
There are many jQuery plugins for this problem.
http://jquery.bassistance.de/validate/demo/ Is this what you need?
Give jQuery plugin page a visit.