How do I automatically respond to this form?

0
<?php get_header(); the_post(); ?>

<?php do_action( 'foundationpress_before_content' ); ?>


<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
    <header id="contato">
        <div class="row xlarge-collapse">
            <div class="large-12 columns">
                <h1 class="entry-title"><?php the_title(); ?></h1>
                <?php the_excerpt(); ?>
            </div>
        </div>
    </header>

    <div class="row">
        <div class="large-10 large-centered columns">

            <h3>Entre em contato conosco</h3>

            <form action="<?=admin_url('admin-ajax.php'); ?>" id="enviar_dados" method="POST" data-abide="ajax" data-loading="enviando mensagem..." data-success="Obrigado! Entraremos em contato o mais rápido possível!" data-failure="Não foi possível enviar seus dados.">
                <input type="hidden" name="action" value="contact"/>
                <input type="text" id="honeypot" name="honeypot" value="" style="display:none;"/>
                <script>
                    $('form').submit(function(){    
                            if ($('#honeypot').val().length != 0) {
                                return false;
                            } 
                    });
                </script>

                <input type="hidden" id="00Nd0000008QXMX" name="00Nd0000008QXMX" value="1" />
                <div class="row">
                    <div class="large-6 columns">

                        <div class="row">
                            <div class="large-6 columns">
                                <label for="first_name">
                                    <input id="first_name" maxlength="40" name="first_name" type="text" placeholder="Nome" required/>
                                    <small class="error">Por favor preencha seu nome.</small>
                                </label>
                            </div>
                            <div class="large-6 columns">
                                <label for="last_name">
                                    <input id="last_name" maxlength="80" name="last_name" type="text" placeholder="Sobrenome" required/>
                                    <small class="error">Por favor preencha seu sobrenome.</small>
                                </label>
                            </div>
                        </div>

                        <div class="row">
                            <div class="large-6 columns">
                                <label for="phone">
                                    <input id="phone" maxlength="40" name="phone" type="text" placeholder="Telefone" required/>
                                    <small class="error">Por favor preencha seu telefone.</small>
                                </label>
                            </div>

                        </div>

                        <div class="row">
                            <div class="large-12 columns">
                                <label for="email">
                                    <input id="email" maxlength="80" name="email" type="email" placeholder="Email" onblur="TesteEmail()" required/>
                                    <small class="error">Por favor preencha seu email.</small>
                                </label>
                            </div>
                        </div>






                    </div>

                    <div class="large-6 columns">

                        <div class="row">
                            <div class="large-12 columns">
                                <label for="message">
                                    <textarea id="message" name="message" placeholder="Mensagem" rows="5" required></textarea>
                                    <small class="error">Por favor preencha sua mensagem.</small>
                                </label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="large-12 columns">
                                <!--<input type="submit" value="enviar" class="right button primary small"/>-->
<input type="submit" value="enviar" class="right button primary small" id="botaoEnviar"/>
                            </div>
                        </div>
                    </div>
                </div>
            </form>



<?php do_action( 'foundationpress_after_content' ); ?>

<?php get_footer(); ?>
    
asked by anonymous 22.04.2018 / 03:55

0 answers