Error on reload page by form action using aletheme
-
Hello people!
I made a form using the model of the SOCHA theme (aletheme) that works fine on my contact page, but does not work in my posts.
When I filling out the form and click “Submit”, it does does not submit the data and reload the page (that loads incomplete).
What might be happening?
CODE OF MY FORM:
<div class="formbox"> <?php if (isset($_GET['success'])) : ?> <p><?php _e('Seu email foi enviado com sucesso, obrigado!', 'aletheme')?></p> <?php endif; ?> <?php if (isset($error) && isset($error['msg'])) : ?> <p><?php echo $error['msg']?></p> <?php endif; ?> <form method="post" action="<?php the_permalink();?>"> <div id="tabform"> <div> <label>Sujet du e-mail:</label> <input type="text" name="contact[voyage]" placeholder="<?php wp_title(); ?>" value="<?php echo isset($_POST['contact']['voyage']) ? $_POST['contact']['voyage'] : ''?>" required="required" id="contact-form-voyage" /> </div> <div> <label>Votre nom:*</label> <input type="text" name="contact[name]" value="<?php echo isset($_POST['contact']['name']) ? $_POST['contact']['name'] : ''?>" required="required" id="contact-form-name" /> </div> <div> <label>Nom de famille:*</label> <input type="text" name="contact[lastname]" value="<?php echo isset($_POST['contact']['lastname']) ? $_POST['contact']['lastname'] : ''?>" required="required" id="contact-form-last-name" /> </div> <div> <label>Votre e-mail:*</label> <input type="email" name="contact[email]" value="<?php echo isset($_POST['contact']['email']) ? $_POST['contact']['email'] : ''?>" required="required" id="contact-form-email" /> </div> <div> <label>Votre téléphone:</label> <input type="tel" name="contact[phone]" value="<?php echo isset($_POST['contact']['phone']) ? $_POST['contact']['phone'] : ''?>" id="contact-form-phone" /> </div> <div> <label>Saisissez votre message:*</label> <textarea name="contact[message]" id="contact-form-message" cols="40" rows="5" required="required"><?php echo isset($_POST['contact']['message']) ? $_POST['contact']['message'] : ''?></textarea> </div> <div> <input type="image" src="bt_envoyer.png" class="submit" name="submit" value="<?php _e('Send', 'aletheme')?>" /> <input type="image" src="bt_propre.png" class="reset" name="reset" tabindex="5" value="<?php _e('Clear', 'aletheme')?>" /> </div> </div> <?php wp_nonce_field() ?> </form> </div>
- The topic ‘Error on reload page by form action using aletheme’ is closed to new replies.