vendredi 19 mars 2021

Submit checkbox form in WordPress

I have a PHP checkbox form to send to WordPress after a submit button

But I don't know how to go about it, do you have a clue to enlighten me?

Thanks you.

Form

<div class="container mt64">
<?php
    $active_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
    if (in_array( 'interparking_marketing_questions/interparking_marketing_questions.php', $active_plugins)) :
        ?>
        <div class="marketing_bloc bloc-checkout grey-background p-3 mb-4">
            <div class="form-group titre-white align-items-center d-flex justify-content-between align-content-between pr-3 pl-3 pt-2 pb-2"><h2 class="title2"><?php echo __("Aidez-nous à mieux vous servir","interparking_aeroparker_offers"); ?></h2></div>
            <?php echo do_shortcode("[interparking_marketing_questions]"); ?>
            <div class="form-row">
                <div class="col-sm-12 md-checkbox">
                    <input id="consent_newsletter_interparking_1" type="checkbox" name="consent_newsletter_interparking_1" class="consent_newsletter_ipk_action">
                    <label for="consent_newsletter_interparking_1"><?php echo __("J'accepte de recevoir les offres marketing d'Interparking","interparking_aeroparker_offers") ?></label>
                </div>
                <div class="col-sm-12 md-checkbox">
                    <input id="consent_newsletter_partners_1" type="checkbox" name="consent_newsletter_partners_1" class="consent_newsletter_partners_action">
                    <label for="consent_newsletter_partners_1"><?php echo __("J'accepte de recevoir les offres marketing des partenaires d'interparking","interparking_aeroparker_offers") ?></label>
                </div>
            </div>
        </div>
        <div class="d-flex justify-content-start"><button class="btn-research"><?php echo __("Envoyer mes réponses","interparking_aeroparker_offers") ?></button></div>
<?php endif; ?>
</div>



Aucun commentaire:

Enregistrer un commentaire