• I’m new with this, so, please be patient!
    πŸ™‚

    I’m tryng to get all info I’ve got on all my contact forms.
    I’m creating my own short code, but first, I don’t know how to get lines from my “PHP code that outputs the HTML you want to see for one entry”

    second, I want all the info for all my forms, I do understand that I must use ‘*’ to do this, but then, how could I know from wich Form does it comes every row? Can I include form name as a column???

    Thanks for your help an patience!!!

    https://wordpress.org/plugins/contact-form-7-to-database-extension/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    The example on that page: http://cfdbplugin.com/?page_id=444
    shows it. Each form field can be referenced via $row['field-name'] in the code (substituting field-name for an actual field name). Then you can echo the HTML you want.

    This might be easier to use a [cfdb-html] shortcode instead of writing a custom shortcode in PHP. What logic are you trying to include that you want to write PHP?

    You can’t include the form name in a column unfortunately.

    Thread Starter pachucote8

    (@pachucote8)

    Well, basically, we need to generate reports from all contact forms, so I want to create only on view of all, so we don’t have to enter each form DB to get info.
    Is there any way to insert info in another database (MySql, etc) before Email will be sent???
    thanks in advance.

    Plugin Author Michael Simpson

    (@msimpson)

    CFDB doesn’t support inserting into another database or table. You would have to use the exiting hooks in CFDB or in your form plugin to save the data where you want it.

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

The topic ‘Include form Name as a column’ is closed to new replies.