contact form-7 drop downs not populating database [closed]
I think the problem is most likely that you have given all 3 of your select fields the same identifying name “date”. Give them each a unique name and that will solve your problem.
I think the problem is most likely that you have given all 3 of your select fields the same identifying name “date”. Give them each a unique name and that will solve your problem.
Contact form 7 Lets you call a JavaScript function after the form has been submitted You will find the Additional Settings field at the bottom of the contact form management page and you need to use the hook named on_sent_ok something like this: on_sent_ok: “$.fancybox.close();”
I haven’t found a way of stopping this other than to set up your contact form to prefix the subject e.g.[MySite] and then use a rule to stop it being filtered as junk.
The documentation for Contact 7 is pretty clear about how to do this – you just need to create a separate mail template for each form and edit the basic header fields http://contactform7.com/setting-up-mail/
It just wasn’t concatenated correctly (i.e. misuse of single/double quotes). This’ll work: $output .= ‘<div class=”colmsg”><label for=”smcf-message”>*’ . __(“Message”, “smcf”) . ‘: </label> <select name=””> <option>Post1</option> <option>Post2</option> <option>Post1</option></select></div><br/>’;
A solution I can think of is creating an almost empty page template that contains the bare minimum header, body (your shortcode) and footer. Create a page with this template and load iFramed. Like: <?php /** * Template Name: Almost Empty Page for Thickbox */ // REPLACE THIS get_header WITH THE CONTENTS OF THE FILE … Read more
Contact Form 7 does not save form submissions to a database, so you have no saved previous form submissions to check a current submission against. That means you’ll need to have a plugin that can save entries to a database (the plugin author seems to recommend “Flamingo” for that). Once you’ve got those, you’ll need … Read more
I din’t try it, but have a try yourself: Contact Form 7 uses something like this: <p>Your Name (required)<br /> [text* your-name] </p> Instead of using paragraph tag (<p>) use span (<span>), and some inline CSS, like: <span style=”width: 48%; float: left; position: relative;”>Your Name (required)<br /> [text* your-name] </span> <span style=”width: 48%; float: left; … Read more
This isn’t based on shortcode detection, but you could try // Add the Contact Form 7 scripts only on the contact page function deregister_cf7_js() { if ( !is_page(‘contact’)) { wp_deregister_script( ‘contact-form-7’); } } add_action( ‘wp_print_scripts’, ‘deregister_cf7_js’ ); function deregister_ct7_styles() { wp_deregister_style( ‘contact-form-7’); } add_action( ‘wp_print_styles’, ‘deregister_ct7_styles’); from http://wptheming.com/2009/12/optimize-plug-in-script-wordpress/ I think you could change the wp_print_styles … Read more
I can see how your solution works, but there is a semantic element created for exactly what you want: <optgroup>. Whatever your solution, I’d encourage you to use that instead. Searching for “contact form 7 optgroup” you’ll discover that other people are looking for the same thing you are and trying to implement <optgroup> to … Read more