Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá amigos de programação!
Utilizo o código abaixo há tempos com um cliente. Fiz uma cópia exata do código para outro cliente, mudando apenas os nomes e os endereços de e-mail, mas o formulário não funciona mais. Ele não dá o submit. Alguém pode me dar alguma dica?
Formulário:
<html>
<head>
<title>Client</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
p {font-family: Arial, Helvetica, sans-serif; font-size:11px; color:224191;}
.style4 {font-size: 10.5px}
.style6 {font-size: 9px}
-->
</style>
</head>
<body bgcolor="ffffff">
<table width="347" height="613" border="1" align="center" cellpadding="10" cellspacing="0" bordercolor="#A8A8A8" bgcolor="#FFFFFF">
<tr>
<td width="323" height="611" align="center" valign="top"><table width="323" height="589" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="303" height="75" align="center"><img src="[http://www.Client.com.br/img/lg.jpg"](http://www.Client.com.br/img/lg.jpg) width="291" height="180" border="0"></td>
</tr>
<tr>
<td height="477">
<script>
function validaform(){
if (document.enviaform.textemail.value == '')
{
alert("Por favor, preencha o campo e-mail.");
return false;
}
}
</script>
<form name="enviaform" action="confirma_contato.php" method="post" onSubmit="return validaform();">
<p>
<font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif" style="font-size:11px">Nome:</font><br>
<input type="text" name="textnome" size="40" style="border-style:solid; border-color:A8A8A8; border-width:1px; font-size:11px; background-color:#eeeeee">
<br>
<br>
<br style="line-height:30%">
<font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif" style="font-size:11px">Cargo:</font><br>
<input type="text" name="textcargo" size="40" style="border-style:solid; border-color:A8A8A8; border-width:1px; font-size:11px; background-color:#eeeeee">
<br>
<br>
<br style="line-height:30%">
<font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif" style="font-size:11px">Empresa:</font><br>
<input type="text" name="textempresa" size="40" style="border-style:solid; border-color:A8A8A8; border-width:1px; font-size:11px; background-color:#eeeeee">
<br>
<br>
<br style="line-height:30%">
<font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif" style="font-size:11px">E-mail:</font><br>
<input type="text" name="textemail" size="40" style="border-style:solid; border-color:A8A8A8; border-width:1px; font-size:11px; background-color:#eeeeee">
<br>
<br>
<br style="line-height:30%">
<font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif" style="font-size:11px">Telefone:</font><br>
<input type="text" name="texttel" size="40" style="border-style:solid; border-color:A8A8A8; border-width:1px; font-size:11px; background-color:#eeeeee">
<br>
<br>
<br style="line-height:30%">
<font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif" style="font-size:11px">Celular:</font><br>
<input type="text" name="textcel" size="40" style="border-style:solid; border-color:A8A8A8; border-width:1px; font-size:11px; background-color:#eeeeee">
<br>
<br>
<br style="line-height:50%">
<font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif" style="font-size:11px">Sua mensagem:</font><br>
<textarea name="textarea" id="textarea" cols="40" rows="5" style="border-style:solid; border-color:A8A8A8; border-width:1px; font-size:11px; background-color:#eeeeee"></textarea>
<br>
<br style="line-height:30%">
<input type="checkbox" name="checkbox" id="checkbox" checked value="Sim, quero receber informações sobre os eventos e produtos do .">
<span class="style4">Sim, autorizo o envio de informações sobre os eventos e produtos da Client por todos os canais de comunicação.</span><br>
<br style="line-height:30%">
<input type="submit" name="Submit" value="Enviar" style="font-size:12px; color:000000">
</p>
</form>
<p></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html><html>
<head>
<title>Client</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
p {font-family: Arial, Helvetica, sans-serif; font-size:12px; color:224191;}
-->
</style>
<?
$nome = $_POST["textnome"];
$cargo = $_POST["textcargo"];
$empresa = $_POST["textempresa"];
$email = $_POST["textemail"];
$telefone = $_POST["texttel"];
$area = $_POST["textarea"];
$celular = $_POST["textcel"];
$check = $_POST["checkbox"];
$texto = "Nome: $nome \nCargo: $cargo \nEmpresa: $empresa \nE-mail: $email \nTelefone: $telefone \nCelular: $celular \nOpt-in: $check \nMensagem: $area";
$texto2 = "Recebemos suas informações com sucesso! Esta mensagem foi enviada automaticamente pelo sistema. Por favor, não a responda.";
mail("contato@Client.com.br", "Contato pelo site", $texto, "FROM: $email");
mail("$email", "Client - Contato", $texto2, "FROM: contato@Client.com.br");
?>
</head>
<body bgcolor="ffffff">
<table width="347" height="220" border="1" align="center" cellpadding="10" cellspacing="0" bordercolor="#A8A8A8" bgcolor="#FFFFFF">
<tr>
<td width="323" height="218" align="center" valign="top"><table width="323" height="196" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="303" height="75" align="center"><img src="[http://www.Client.com.br/img/lg.jpg"](http://www.Client.com.br/img/lg.jpg) width="291" height="180" border="0"></td>
</tr>
<tr>
<td height="84" align="center">
<p><br>
<strong>Recebemos suas informações com sucesso!</strong></p>
<p>Retornaremos seu contato em breve. </p> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>Carregando comentários...