0
Well guys, what happens... I created a php form to insert in my project, it happens that, always gives some error when sending, and the times I managed to send did not send all the data but only the "textarea". so after trying hard, I decided to delete everything from mysql and Cpanel root. Please anyone who can help, thank you very much. "I need step by step which files I should create, where to insert and which to edit"
the form code is:
<form action="inserir.php" id="form1" method="post" name="form1">
<?php
import_request_variables("gP");
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>J & S Soluções Financeiras</title>
<h1 style="text-align: center;">Preencha o formulário abaixo que entraremos em contato com você em até 1 hora</h1>
<center>
<h3 style="text-align: center;">Em horário comercial</h3>
</center>
<p></p>
<p></p>
<!-- DADOS PESSOAIS-->
<fieldset><legend>Dados Pessoais (Obrigatório)</legend>
<table cellspacing="10">
<tbody>
<tr>
<td><label for="nome">Nome: </label></td>
<td align="left"><input name="nome" required="" type="text" /></td>
<td><label for="sobrenome">Sobrenome: </label></td>
<td align="left"><input name="sobrenome" required="" type="text" /></td>
</tr>
<tr>
<td><label>Nascimento: </label></td>
<td align="left"><input maxlength="2" name="dia" required="" size="2" type="text" /> <input maxlength="2" name="mes" required="" size="2" type="text" /> <input maxlength="4" name="ano" required="" size="4" type="text" /></td>
</tr>
</tbody>
</table>
</fieldset>
<!-- RESPONDA -->
<fieldset><legend>Responda (Obrigatório)</legend>
<table cellspacing="10">
<tbody>
<tr>
<td><label for="Eu Sou">Eu Sou:</label></td>
<td align="left"><select name="Eu Sou"><option disabled="disabled" selected="selected" value="0">Selecionar...</option><option value="all">CPF</option><option value="all">CNPJ</option> </select></td>
</tr>
<tr>
<td><label for="Eu Quero">Eu Quero:</label></td>
<td align="left"><select multiple="true" name="Eu Quero"><option selected="selected" value="0">Selecionar...</option><option value="all">Fazer Um Empréstimo</option><option value="all">Pagar Contas</option><option value="all">Me Tornar Um Correspondente</option></select></td>
</tr>
<tr>
<td><label for="Melhor forma de Contato">Melhor Forma de Contato:</label></td>
<td align="left"><select multiple="true" name="Melhor Forma de Contato"><option selected="selected" value="0">Selecionar...</option><option value="all">Ligação</option><option value="all">WhatsApp</option><option value="all">E-mail</option></select></td>
</tr>
<tr>
<td><label for="Preferência De Contato">Preferência De Contato:</label></td>
<td align="left"><select multiple="true" name="Preferência De Contato"><option selected="selected" value="0">Selecionar...</option><option value="all">Manhã</option><option value="all">Tarde</option><option value="all">Imediato</option></select></td>
</tr>
</tbody>
</table>
</fieldset>
<br />
<!-- DADOS DE CONTATO-->
<fieldset><legend>Dados de Contato (Obrigatório)</legend>
<table cellspacing="10">
<tbody>
<tr>
</tr>
<tr>
<td><label>Telefone: </label></td>
<td align="left"><input maxlength="2" name="DDD" size="1" type="all" />-<input maxlength="8" name="TELEFONE" size="10" type="text" /></td>
<td><label>WhatsApp: </label></td>
<td align="left"><input maxlength="2" name="DDD" size="1" type="all" />-<input maxlength="9" name="WhatsApp" size="10" type="text" /></td>
</tr>
<tr>
<td><label>E-mail: </label></td>
<td align="left"><input name="email" size="25" type="email" /></td>
</tr>
</tbody>
</table>
</fieldset>
<br />
<!-- CAIXA DE TEXTO-->
<fieldset><legend>Caixa De Texto (Opcional)</legend>
<table cellspacing="10">
</table>
<center>Escreva o que desejar:
<table>
<tbody>
<tr>
<td align="left"><textarea cols="100" id="comentarios" name="comentarios" rows="10" size="20">
</textarea></td>
</tr>
</tbody>
</table>
</center>
</fieldset>
<!-- ENDEREÇO -->
<fieldset><legend>Dados de Endereço (Opcional)</legend>
<table cellspacing="10">
<tbody>
<tr>
<td><label for="rua">Rua:</label></td>
<td align="left"><input name="rua" type="text" /></td>
<td><label for="numero">Numero:</label></td>
<td align="left"><input name="numero" size="4" type="text" /></td>
</tr>
<tr>
<td><label for="bairro">Bairro: </label></td>
<td align="left"><input name="bairro" type="text" /></td>
</tr>
<tr>
<td><label for="estado">Estado:</label></td>
<td align="left"><select name="estado"><option value="ac">Acre</option><option value="al">Alagoas</option><option value="am">Amazonas</option><option value="ap">Amapá</option><option value="ba">Bahia</option><option value="ce">Ceará</option><option value="df">Distrito Federal</option><option value="es">Espírito Santo</option><option value="go">Goiás</option><option value="ma">Maranhão</option><option value="mt">Mato Grosso</option><option value="ms">Mato Grosso do Sul</option><option value="mg">Minas Gerais</option><option value="pa">Pará</option><option value="pb">Paraíba</option><option value="pr">Paraná</option><option value="pe">Pernambuco</option><option value="pi">Piauí</option><option value="rj">Rio de Janeiro</option><option value="rn">Rio Grande do Norte</option><option value="ro">Rondônia</option><option value="rs">Rio Grande do Sul</option><option value="rr">Roraima</option><option value="sc">Santa Catarina</option><option value="se">Sergipe</option><option value="sp">São Paulo</option><option value="to">Tocantins</option> </select></td>
</tr>
<tr>
<td><label for="cidade">Cidade: </label></td>
<td align="left"><input name="cidade" type="text" /></td>
</tr>
<tr>
<td><label for="cep">CEP: </label></td>
<td align="left"><input maxlength="5" name="cep" size="5" type="text" /> - <input maxlength="3" name="cep2" size="3" type="text" /></td>
</tr>
</tbody>
</table>
</fieldset>
<br />
<input type="submit" /> <input type="reset" value="Limpar" />
</form>
<!--?
</php>
Igor, take a look at the text of the question, that part I think was missing something: "did not send all data but only from . then"
– Ricardo Pontual
Excuse me... yes. You only sent the <text-area>
– Igor Michell
You can click on the "edit" link below your question or here to edit and fix. Put in crases to look like this:
<textarea>
– Ricardo Pontual
Okay, done. Excuse me the ignorance, I’m still learning the language, and nothing better than getting help from those who understand. : D
– Igor Michell
Imagine Igor, we are here to help, and the more you master the tools of the site the better :)
– Ricardo Pontual