0
Good afternoon,
Guys, I’m having a problem with the contact form. Here’s a preview.
In this link it is working normally
bit.ly/2sPnWJg
Already in this link, which is the same action, even link it does not work.
bit.ly/2sAvuQP
<div class="container">
<div class="row">
<div class="col-md-11">
<form action="/mail/envia.php" method="post" id="Form_Envio">
<div class="form-group">
<label for="exampleInputEmail1">Qual Assunto?</label>
<select name="options" class="form-control" required>
<option value="">Selecione</option>
<option value="Dúvidas">Dúvidas</option>
<option value="Meu Pedido">Meu Pedido</option>
<option value="Troca">Troca</option>
<option value="Assuntos Diversos">Assuntos Diversos</option>
<option value="Retorno - Desistência">Retorno - Desistência</option>
</select>
</div>
<div class="form-group">
<label>Nome:</label>
<input maxlength="100" name="name" class="form-control" id="Nome"/>
</div>
<div class="form-group">
<label>E-mail</label>
<input type="email" maxlength="50" name="email" class="form-control" id="email"/>
</div>
<div class="form-group">
<label>Telefone</label>
<input size="15" name="phone" class="form-control" id="Telefone" />
</label>
</div>
<div class="form-group">
<label>Mensagem</label>
<textarea cols="60" name="message" rows="10" wrap="physical" class="form-control" id="message"></textarea>
</div>
<div class="form-group">
<input type="submit" value="ENVIAR" border="0" name="image2" width="75" height="25" />
</div>
</form>
</div>
</div>
Console message: Origin 'http://loja.bluebeach.com.br' is therefore not allowed access maybe the address of the php server you are posting to is not CORS enabled.
– BrTkCa
I’m gonna check out @Lucascosta
– Leonardo
@Lucascostat to activate CORS I use this header code('Access-Control-Allow-Origin:*'); in the file send.php right? If that’s it, I took the test and it didn’t work =/
– Leonardo