WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
Example not working (8 posts)

  1. timlh
    Member
    Posted 1 year ago #

    Hi Mickael

    I tried your example on this page.
    http://cfdbplugin.com/?page_id=508

    I crated a page in WordPress then pasted the code in.
    I changed the name parameter in the hidden field to name="Client_Registration" and then pasted the shortcode below the form.

    When I view the page I can see the shortcode.
    Of course it doesn't work.
    I'm stumped.
    Thanks , Tim

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

  2. timlh
    Member
    Posted 1 year ago #

    Michael:
    ahh action yes I get it now. I created a landing page for the form and put the short code there but it still won't work properly. I see the short code in the browser. I notice that [cfdb-save-post-data] is not in the short code reference you provide. Any ideas as to what I'm doing wrong?
    Thank you in advance for any assistance you provide.
    Tim

  3. timlh
    Member
    Posted 1 year ago #

    Here's the code for my simple test form:
    <form action="http://you-get-real.com/thanks-for-registering" method="post" enctype="multipart/form-data">
    <input type="hidden" name="Client_Registration" value="People"/>
    First Name: <input type="text" name="fname" value=""/>
    Last Name: <input type="text" name="lname" value=""/>
    <input type="file" name="upload"/>
    <input type="submit" />
    </form>

    Here's what I have on the action page
    Thanks for Registering.
    [cfdb-save-post-data]

  4. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    Change the first input field to the below and try it:

    <input type="hidden" name="form_title" value="Client_Registration"/>

  5. timlh
    Member
    Posted 1 year ago #

  6. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    try just this:
    [cfdb-save-post-data]
    not this:
    [cfdb-save-post-data][/cfdb-save-post-data]

    Also edit the post in the WP HTML (Not visual) tab and ensure that you have "[" and not some URL-encoded character.

  7. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    And one more thing, the problem is you named the short code wrong (My fault, I have it wrong in the documentation!)

    It is:
    [cfdb-save-form-post]

    not:
    [cfdb-save-post-data]

  8. timlh
    Member
    Posted 1 year ago #

    That did it. It didn't make any sense to me but now it does. The short-code appeared because it was not short-code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.