[desc]: I want to do the following but am having a tuff time figuring out how to.
On every page of the blog I want to have a box that asks the user to select a date? Preferably from 3 drop downs (day, month, year) but a calender would work too. The user selects a date and then clicks on a "Check Date" button which could be a Submit button. The user should then be taken to another page on the blog "or maybe pop-up. But preference to another page that shows the date selected listed and then some additional questions like what is your email/tel# etc. When the user submits this form an email should be generated and sent.
Also is there a tutorial on how to setup a custom form. I see code under Help but no idea where to put it?
form (a) only having two fields. a date picker field and a submit button. i would also configure a POST action redirection to point to your WP page with the second, custom form.
form (b) being the custom form, which takes the POST data (only the date really) and checks for whatever you need to check and then produces that overall form (b).
when form (b) gets submitted the user receives an auto conf email.
Also is there a tutorial on how to setup a custom form. I see code under Help but no idea where to put it?
That code goes to wherever you need to the custom form to show up.
make sure form (a) and (b) both have Use custom input field NAMES & ID's selected!
for form (a) you need to check 'Send form data to an alternative page' in your config and provide the full URL to your second form (b)
the form (b) will be placed on the above mentioned URL by using a new WP page template that includes the cforms insert call: <?php insert_cform('2'); ?>
If you name the date picker field the same (e.g. Your date[id:datefield]), form (b) will take over the input from form (a) automatically (for this you need the new release v8.5.2 which I can send you via email)
insert_cform('2'); should of course only be shown if "date is available", code example:
<?php if ( date_ok( $_POST[datefield] ) ) insert_cform('2');
function date_ok(){ [...your code..] return false;
I appreciate your help. I am new to coding and this is giving me a heads start. Just to make things easy no matter what date the user picks, the form (b) should display at the top "YES this date <print date> is available". and then have some additional questions user can complete.
WHat code would i need to have the date printed? Are you able to email me the exact code please?