Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
FGalera fizx um form e ele ta chegando incompleto no e-mail...as checkboz não chegam pq?:
<?php require "config.ini"; ?><?php////////////////////////////////////////////////// Formail em PHP por SK15 v 1.0 |||// Esse formulario é uma imitação do formail |||// com um pequena ponto fraco |||// ao adicionar um novo campo ele tera |||// quer ser mudado aqui nesse arquivo |||/////////////////////////////////////////////|||// Verifica se O Campo nome tá preenchidoif (empty($nome)){// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>É Necessario o Preenchimento do <b>Nome do Responsável</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}// Verifica se o Campo Mensagem tá preenchidoelseif (empty($email)){// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>É Necessario o Preenchimento do <b>E-mail</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}// Verifica se o Campo Mensagem tá preenchidoelseif (empty($empresa)){// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>É Necessario o Preenchimento da <b>Empresa</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}// Verifica se o Campo Mensagem tá preenchidoelseif (empty($telefone)){// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>É Necessario o Preenchimento do <b>Telefone</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}// Verifica se o Campo Mensagem tá preenchidoelseif (empty($celular)){// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>É Necessario o Preenchimento do <b>Celular</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}// Verifica o Campo E-mail Tá preenchidoelseif (empty($email)){// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>O E-mail não foi <b>Digitado</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}// Verifoca Se o E-mail Contem @elseif (!(strpos($email,"@")) OR strpos($email,"@") !=strrpos($email,"@")) {// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>O E-mail <b>Não</b> é <b>válido</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}// Verifica se o Campo Mensagem tá preenchidoelseif (empty($mensagem)){// HTML que aparecera o ERROecho "<html><head><title>Ocorreu Um ERRO !!!</title></head>";echo "<body bgcolor=\"#ffffff\">";echo "<br><br><br>";echo "<center>Você <b>Não</b> Digito Uma <b>Mensagem</b></center>";echo "<br><br><center><a href=\"java script:history.back(1)\">Volta</a></center>";echo "</body></html>";}else{// Comfirma o Envio Do E-mailif ($certo== "1"){// Função de envio Do E-mailmail("$emaildest","Cadastro de Anunciantes","Nome:$nome\n E-mail:$email\n Empresa:$empresa\n Telefone:$telefone\n Celular:$celular\n Tipo de Anuncio:$cabecalho\n Tipo de Anuncio:$rodape\n Tipo de Anuncio:$lateral\n Localização:$paginaprincipal\n $comercio\n $classificados\n $paginasinternas\n $servicos\n $cimoveis\n Mensagem:$mensagem\n IP:$REMOTE_ADDR\n\n ","From:$nome<$email>");}// HTML do redirecionameto e se não redirecionar aparece um linkecho "<html><head>";echo "<meta http-equiv=\"refresh\" content=\"0;url=$redirecionar\">";echo "<title>Redirecionado ...</title>";echo "</head><body bgcolor=\"#ffffff\">";echo "<a href=\"$redirecionar\" target=\"_top\">Volta Para O Site</a>";echo "</body></html>";}?>
e o HTML
<html><head><title>Formulárioa de Cadastro</title><style type="text/css"><!--#Layer1 { position:absolute; width:281px; height:400px; z-index:1; left: 54px; top: 256px; overflow: hidden;}#Layer2 { position:absolute; left:395px; top:71px; width:41px; height:16px; z-index:1;}--></style><script type="text/javascript"><!--function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);//--></script><link href="noivas.css" rel="stylesheet" type="text/css"><style type="text/css"><!--.style3 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; }.style4 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; }.style10 {color: #FFFFFF}.style11 {color: #0066CC}.style18 {font-size: 9px; font-family: Arial, Helvetica, sans-serif; }--></style></head><body bgcolor="#FFFFFF"><form action="formail.php" method="POST"><input type="hidden" name="emaildest" value="nonononon@bol.com.br"><!-- e-mail do destinatario --><input type="hidden" name="redirecionar" value="http://www.nonononono.com.br/obrigado.html"><!-- Endereço para onde Vai depois de enviar o formulario --><center> <table width="311" bgcolor="#FFFFFF" border="0" align="center" cellspacing="0" cellpadding="1"><tr><td width="309"><table width="255" bgcolor="#ffffff" border="0" align="center" cellspacing="3" cellpadding="3"><tr><td width="52" bgcolor="#0066CC"><div align="right" class="style4"> <div align="left">Nome</div></div></td><td colspan="6"><input type="text" size="41" name="nome" value=""></td></tr><tr><td bgcolor="#0066CC"><div align="right" class="style4"> <div align="left">E-mail</div></div></td><td colspan="6"><input type="text" size="41" name="email" value=""></td><tr><td bgcolor="#0066CC"><div align="right" class="style4"> <div align="left">Empresa</div></div></td><td colspan="6"><input type="text" size="41" name="empresa" value=""></td><tr><td bgcolor="#0066CC"><div align="right" class="style4"> <div align="left">Telefone</div></div></td><td colspan="6"><input type="text" size="41" name="telefone" value=""></td></tr><tr><td bgcolor="#0066CC"><div align="right" class="style4"> <div align="left">Celular</div></div></td><td colspan="6"><input type="text" size="41" name="celular" value=""></td></tr><tr><td rowspan="6" bgcolor="#0066CC" class="style3 style10">Marque as opções<br> desejadas<br> para <br> anúncio</td><td colspan="6" bgcolor="#FFFFFF"><table width="272" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#BEE2F9"><div align="right" class="style3"> <div align="left" class="style11"> <strong> Tipo de Anúncio</strong> </div></div></table><tr><td width="22"><input type="checkbox" name="cabecalho" value="checkbox"></td><td width="70"><span class="style18">cabeçalho</span></td><td width="20"><input name="rodape" type="checkbox" value="checkbox"></td><td width="40"><span class="style18">rodapé</span></td><td width="22"><input name="lateral" type="checkbox" value=""></td><td width="55"><span class="style18">lateral</span></td></tr><tr><td colspan="6" bgcolor="#FFFFFF"><table width="272" height="25" border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#BEE2F9"><div align="right" class="style3"> <div align="left" class="style11"> <strong>Localização</strong> </div></div></table></tr><tr> <td><input type="checkbox" name="paginaprincipal" value="checkbox"></td> <td><span class="style18">página principal </span></td> <td><input type="checkbox" name="comercio" value="checkbox"></td> <td><span class="style18">comércio</span></td> <td><input type="checkbox" name="classificados" value="checkbox"></td> <td><span class="style18">classificados</span></td></tr><tr> <td><input type="checkbox" name="paginasinternas" value="checkbox"></td> <td><span class="style18">páginas internas (indeterminado) </span></td> <td><input type="checkbox" name="servicos" value="checkbox"></td> <td><span class="style18">serviços</span></td> <td><input type="checkbox" name="imoveis" value="checkbox"></td> <td><span class="style18">imóveis</span></td></tr><tr> </tr><tr><td bgcolor="#0066CC"><span class="style4"> <div align="right" class="style4"> <div align="left">Mensagem</div></div></td><td colspan="6"><label> <textarea name="mensagem" cols="31" rows="7"></textarea></label></td></tr><tr><td colspan="7" align="center"><input type="submit" value=" Enviar "> <input type="reset" value=" Limpar "></td></tr></table></td></tr></table></center></form></body></html>
Desde já agradeço........
Carregando comentários...