Wordpress contact form 7 to database - php

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!

Related

Using FPDF with specific contact form 7 forms

I'm using the solution listed here: https://wordpress.org/support/topic/convert-form-output-to-pdf-attachment to create a pdf using form data with fpdf and contact form 7 on a Wordpress build.
Does anyone know how to attach the pdf to one particular form?
This solution works great but it seems to attach the pdf to all contact 7 forms. Is there a way to have it only attach to a specific form for those of us that have multiple forms on one site. Maybe by form id?
Thanks,
Have solved it. Used the following variable and if statement.
$id = $contact_form->id();
if ($id==16) where 16 equals the id of the contact 7 form
There's probably more efficient solutions but I'm not proficient in PHP.

I have a form in drupal 7 how to submit the results to database to create new user

I had a question about a tutorial that I saw on sitepoint.com
http://www.sitepoint.com/building-multi-page-wizard-like-form-drupal/
I've got everything in the custom module and now I need to know how to go about actually creating the user using this form.
There's a multipageform_form1_submit code where it says //Store the values from $finalformvalues in database or file etc
What am I to do to actually create a new user? I'm sure there's a little snippet of code that needs to get added but I have looked and looked and cannot seem to find what I need. Any help would be greatly appreciated. Thanks in advance.
To add a new user, just use the user functions in your hook submit. See this article for code examples.

Send form data to external database in wordpress

My client want to have form collecting the user data and save to external database
that is on different hosting of the wordpress site.
I need to have two forms, one is for contact us purpose and the second for newsletter registering.
Both forms need to collect the data and save it to the database on different tables.
I found plugin that let me make form on wordpress and plugin that let my save the data on the database wordpress use, but this in not what I need.
I found this solution Create a form and save data in a external DB with Wordpress but it do not help me.
I tried to run some PHP code (and learn it this way, because I do not know php) to get the data but I got nothing.
it is possible to do what I am asking?
Is there some plugin to do this?
I do not ask for code, but some help will great.
Thanks
The code in this page helps you create a second database connection, once you connect the second database, you can store data to it using routine WordPress database commands
http://bavotasan.com/2011/access-another-database-in-wordpress/
$newdb = new wpdb($DB_USER, $DB_PASSWORD, $DB_NAME, $DB_HOST);
$newdb->show_errors();
Hope this helps, let me know if there is still an issue.

Wordpress contact form 7 post variables

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

Form data from JQuery dynamic form

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.

Categories