WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
[Plugin: Contact Form 7 to Database Extension] retrieve data to iframe on page (6 posts)

  1. oldtimercurt
    Member
    Posted 2 years ago #

    Can I use short code to extract data and display it in a table inside an iframe? Can't seem to figure out how to tie the iframe src= to an output from cfdb.

    Any help most appreciated.

    Curt

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

  2. Michael Simpson
    Member
    Plugin Author

    Posted 2 years ago #

    Try going to the Database Short Code page, pick you form and options, click on the "(Test Short Code Results) " link. Copy the URL from the page that opens and use that in your "src=". You will have to have permissions set right for users who are not logged in to access that URL.

  3. oldtimercurt
    Member
    Posted 2 years ago #

    Thanks for the quick response, Michael. Worked great to bring "your" generated table into my iframe. Is there any way to catch your query result so I can generated my own table so I can style it. This is what I did in my non-wp web site web site.

    Also would like to be able to refresh the page on form submit so the updated results are displayed with no additional user interaction.

    Thanks for a really great plug in.

    Curt

  4. Michael Simpson
    Member
    Plugin Author

    Posted 2 years ago #

    Follow the same process, but in the short code builder page, you can add in a value for the html table's "id", "class" to refer to styles you have in your CSS. But since you have it in an iframe, I don't know if it would pick up styles. You can also embed you CSS by setting the "style" in the short code builder page

  5. oldtimercurt
    Member
    Posted 2 years ago #

    Thanks again for all the help, Michael. Using CF7, CFDB, and your blog suggestion of Shortcode Exec PHP, I've managed to meet my needs. Other than some styling I need to figure out how to refresh the page with form and display table right after the data is submitted. Any suggestions?

    Oh yeah, I have to migrate the page from my XAMPP to the live site.

    Thanks again./

    Curt

  6. oldtimercurt
    Member
    Posted 2 years ago #

    Well, Michael. Thanks to your assistance and great plugin, I've managed to achieve my objective. http://wp-test.aroundheronsforest.com/pinestraw is the site and pinestraw is the page.

    What a learning experience for this oldtimer (70)

    Curt

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic