[Plugin: Contact Form 7] Populate dropdown values using PHP (1 post)

  1. duncanmoo
    Posted 7 years ago #

    I really like the looks of this plugin, but I have dynamic options I need to load from my database for the dropdown.

    I see that PHP code is not evaluated if inserted into a form. I need something like this:

    <?php $all_country_names = get_country_names('list');?>
    Country: [select Country include_blank <?php print $all_country_names;?>]

    I really did look around for a solution but all I found were unresolved questions along the same lines.

Topic Closed

This topic has been closed to new replies.

About this Topic