wpcf7_add_shortcode('choosecat', 'createbox', true);
function createbox(){
global $post;
$args = array('hide_empty' => false, 'orderby' => 'name');
$terms = get_terms( 'branchen', $args );
$output .= '<ul class="checkboxes">';
foreach ( $terms as $term ) : setup_postdata($cat);
$title = $term->name;
$output .= "<li><input name='branches' type='checkbox' value='$title'> $title</input></li>";
endforeach;
$output .= '</ul>';
return $output;
}
So far so good, the terms are being displayed.
But after selecting multiple chechboxes, still only one value is being output in the email – why is that?
Please advise, much appreciated!
]]>This version includes several fixes and new features.
A javascript date chooser field has been added which displays a nice calendar to select dates (from https://www.nsftools.com/tips/DatePickerTest.htm). Another special field has been added – html – which allows you to easily insert any kind of code into your form.
Commas can now be used in check boxes, radio buttons, and select boxes. Because commas are used to separate data in these fields, if you want a comma in your text, just use two, and they will be replaced with one before the text is displayed.
An optional customizable timestamp has been added for those using the ’save to data file’ option.
A few changes have been made for character support, a bug has been fixed involving spaces in selrecip data, and new (improved) email validation code has been implemented (from https://code.google.com/p/php-email-address-validation/).
The WordPress plugin version also adds:
Form instances are now listed on the main admin page (DDFM-Main) with descriptions of each instance listed – so you can now keep track of where your instances are used, and quickly edit them. The code used to display all of the options pages has been updated as well, and there is improved support for multiple forms on a single page.
Enjoy!
]]>More information / Download:
https://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/
Here is the article introduction:
This plugin has a wide range of features including: Support for multiple instances, an easy to use dynamic form generation system (any number of fields, in any order), multiple recipients, multiple file attachments, an image verification system, numerous security features (including protection against email header injection), a message template system, and too many other things to list. This plugin was designed to be easy to use, while still being extremely flexible. If you just want a simple contact form, you can set one up with just a few clicks. For those of you who need something a bit more advanced, you can completely customize the plugin to fit your needs – whether it is 5 fields or 500.
Even though this version packs in a lot of new features, I have tried to make things even easier to use. The new form creation system is much more user-friendly, and the documentation should be a bit easier to read as well.
I want to thank all of you out there who have used this plugin (and the matching non-WordPress version), suggested features, tested, etc.. Enjoy!
Edit: This plugin has been verified to work in WordPress 2.0 through 2.1, and may still work in some earlier versions as well.
]]>this shows up on top of my page.
Warning: ob_start(): output handler ‘ob_gzhandler’ cannot be used after ‘URL-Rewriter’ in /home/vjsource/public_html/main/wp-includes/functions.php on line 829
Any help would be greatly appreciated.
]]>The plugin has been rewritten a bit, and is now contained within a class.
This means I was able to add support for multiple form-mailers without having to duplicate the plugin file and rename variables.
It is all self contained. When the plugin is installed, you will have an options page where you can specify the number of instances. For each instance you setup, a sub options page is created to configure the settings of that form.
You can run as many form mailers as you like now, and each one can have its own settings!
The CSS is now in a separate file for easy access. A link to it is automatically added to the header so you do not have to move it into your main CSS file unless you want to.
Enjoy!
https://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/
]]>