1
Hello,
I have a form and I’d like to know how to change his results.
Example: both when the form is successfully completed and when an error occurs it redirects to a page of my choice.
I’m using the following code:
<form class="mbr-form" action="[email protected]" method="post" name="Meu Formulario">
<div class="row row-sm-offset">
<div class="col-md-4 multi-horizontal" data-for="name">
<div class="form-group">
<label mbr-text class="form-control-label mbr-fonts-style" mbr-theme-style="display-7" for="name">Nome</label>
<input type="text" class="form-control" name="name" data-form-field="Name" required>
</div>
</div>
<div class="col-md-4 multi-horizontal" data-for="email">
<div class="form-group">
<label mbr-text class="form-control-label mbr-fonts-style" mbr-theme-style="display-7" for="email">Email</label>
<input type="email" class="form-control" name="email" data-form-field="Email" required>
</div>
</div>
<div class="col-md-4 multi-horizontal" data-for="phone" hidden="hidden">
<div class="form-group">
<label mbr-text class="form-control-label mbr-fonts-style" mbr-theme-style="display-7" for="phone" hidden="hidden">Produto</label>
<input type="tel" class="form-control" name="phone" data-form-field="Phone" hidden="hidden">
</div>
</div>
</div>
<div class="form-group" data-for="message">
<label mbr-text class="form-control-label mbr-fonts-style" mbr-theme-style="display-7" for="message">Mensagem</label>
<textarea type="text" class="form-control" name="message" rows="7" data-form-field="Message"></textarea>
</div>
<span mbr-buttons mbr-theme-style="display-4" data-toolbar="-mbrLink,-mbrBtnAdd,-mbrBtnMove" class="input-group-btn"><a href type="submit" class="btn btn-primary btn-form">ENVIAR MENSAGEM</a></span>
</form>
What do you want with this code? Send the data to the email
[email protected]
?– user60252
Yes, exactly. And after sending the data to the email, I would like to direct the user to an external page (example: www.google.com)
– lukkicode
You have php support?
– user60252
This form does not support php. This form was created with Formoid (http://formoid.com)
– lukkicode
I didn’t know this formoid. What I wanted to ask is if your server has PHP.
– user60252
Yes, it has a PHP server.
– lukkicode
Why phone is Hidden?
– user60252