Forum Moderators: coopster

Message Too Old, No Replies

WordPress Contact Form Database Insert

         

dougmcc1

12:47 am on Mar 23, 2017 (gmt 0)

10+ Year Member



I have a wordpress theme that uses the cherry framework.

Right now, when a user submits the form, I receive the form data in an email.

Instead, I'd like to have the form data inserted into a table called 'leads'. I am told the functions.php file is the file to edit, but when I edit it, the contact form stops working (the form doesnt submit after clicking the submit button).

Has anyone else successfully tackled this issue and guide me in the right direction?

phranque

2:01 pm on Mar 30, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



any clues in the server access and error logs?

not2easy

2:35 pm on Mar 30, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Most plugins depend on using functions.php in its default state. You might either contact the plugin creator or look at files within that plugin's folder that could be edited. Keep in mind that for security you would need to re-edit any files after an update and should not avoid updates.