Support » Plugins » how to pass value in contact form shortcode

  • Hi.

    In my page i want to display like.. i have a date field textbox in which i will select a date.. and according to that date, get the data(for the submit time) from the contact form db and display the rows according to the selected time.. please help

    [contact-form-7 id=”365″ title=”date” onselect=”details(this.value)”]
    <?php
    function details()
    {
    $id= $_POST(Date);
    echo $id;
    ?>
    [cfdb-datatable form=”testform” show=”Name,Email” filter=”submit_time=$id”]
    <?php
    }
    ?>

Viewing 1 replies (of 1 total)
  • Thread Starter saj123

    (@saj123)

    Hi.

    In my page i want to display like.. i have a date field textbox in which i will select a date.. and according to that date, get the data(for the submit time) from the contact form db and display the rows according to the selected time.. please help

    [contact-form-7 id=”365″ title=”date” onselect=”details(this.value)”]

    <?php
    function details()
    {
    $id= $_POST(Date);
    echo $id;
    ?>
    [cfdb-datatable form="testform" show="Name,Email" filter="submit_time=$id"]
    <?php
    }
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘how to pass value in contact form shortcode’ is closed to new replies.