studdiox 0 Denunciar post Postado Setembro 6, 2007 Aeo codigo inteiro de novo coloquei as readers e nao funfou a parte do html fiz tbm a alteraçao que o colega indicou no ultimo post e tabm nao funcionou, agora sobre aparecer a miniatura ddo carro escolido quase nao sei o q tah faltando ele nao tah pegando o id da imagem na barra so vejo o codigo ate aqui http://www.meusite.com.br/adm/detalhes_do_...ulo.php?id=<? o q pode ser de errado se alguem puder me ajudar a editar esse formulario ? ou fazer algo parecido eu agradeço muito. O ultimo posto foi nester link http://forum.imasters.com.br/index.php?act...&pid=862827 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>: : : Mauricio Veiculos : : :</title> <style type="text/css"> <!-- body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; } .Estilo1 { color: #FFFFFF; font-weight: normal; } body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-image: url(); background-repeat: no-repeat; background-color: #000000; } a { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFF00; } a:visited { color: #FFFF00; text-decoration: none; } a:hover { color: #FF0000; text-decoration: none; } a:active { color: #FF0000; text-decoration: none; } a:link { text-decoration: none; } --> </style> <? if ($acao == "entrar") { include("conexao.php"); $vconsulta=mysql_query("SELECT * FROM tb_veiculos WHERE id like '$codigo'"); $vdados= mysql_fetch_array ($vconsulta); $marca=$vdados["montadora"]; $veiculo=$vdados["modelo"]; $ano=$vdados["ano"]; $cor=$vdados["cor"]; $valor=$vdados["valor"]; print "<font class=linko > <h6><font color=#FFFF00><center>PROPOSTA <br><br> Marca : $marca - Modelo : $veiculo <br>Ano : $ano - Cor : $cor - Valor : $valor </h6></font>"; print"</table><table width='100%' class='tabela' height='0' border='0' align='center'><tr><td>"; ?> <script> function Valida(){ if(form1.nome.value == ""){ alert("Informe seu nome por gentileza."); form1.nome.focus();return false; } if(form1.email.value == ""){ alert("Informe seu e-mail por gentileza."); form1.email.focus();return false; } if(form1.DDD.value == ""){ alert("Informe o código de area de seu telefone por gentileza."); form1.DDD.focus();return false; } if(form1.telefone.value == ""){ alert("Informe seu telefone por gentileza."); form1.telefone.focus();return false; } if(form1.mensagem.value == ""){ alert("Campo mensagem não pode estar em branco!"); form1.mensagem.focus();return false; } } </script> </head> <body onload="java script:form1.nome.focus();"> <td width="500" colspan="5" align="center"> </td><form name="form1" method="post" action="proposta.php?acao=enviar" onSubmit="return Valida();"> <table width="500" border="1" align="center" cellpadding="4" cellspacing="2" bordercolor="#333333" bgcolor="#000000"> <td height="28" colspan="2" align="center" background="images/bg bar2.jpg" bgcolor="#333333"><div align="center" class="Estilo1"> <div align="center">FORMULARIO DE PROPOSTA <br /> </div> </div></td> </tr> <tr> <td width="86" align="right" bgcolor="#333333">Nome : </td> <td width="386" bgcolor="#333333"><div align="left"> <input name="nome" id="nome" size="45" /> </div></td> </tr> <tr> <td align="right" bgcolor="#333333">E-Mail :</td> <td bgcolor="#333333"><div align="left"> <input name="email" id="email" size="45" /> </div></td> </tr> <tr> <td align="right" bgcolor="#333333">Telefone : </td> <td bgcolor="#333333"><div align="left"> <input name="DDD" id="DDD" size="1" maxlength="2" /> <input name="telefone" id="telefone" size="40" /> </div></td> </tr> <tr> <td align="right" bgcolor="#333333">Mensagem : </td> <td bgcolor="#333333"><div align="left"> <textarea name="mensagem" rows="7" id="mensagem" style="width:300px"> </textarea> </div></td> </tr> <tr> <td bgcolor="#333333"> </td> <input name="codigo" type="hidden" value="<? print $codigo; ?>" /> <td bgcolor="#333333"> <div align="left"> <input class="botao_submit" name="enviar" type="submit" id="enviar" value="ENVIAR" /> <input name="limpar" type="reset" id="limpar" value="LIMPAR" /> </div></td> </tr> </table> </form> </table> <? } elseif($acao == "enviar") { print"<table width='90%' class='tabela' height='0' border='0' align='center'><tr><td>"; #Código de formulario criado por Humberto #Por ser um código livre, eu peço que pelo menos para reconhecimento o meu copyright, obrigado desde ja! $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $nome <$email>\r\n"; $msg = "Nome :\t$nome \n"; $msg .= "E-mail :\t$email \n"; $msg .= "DDD :\t$DDD \n"; $msg .= "Telefone :\t$telefone \n"; $msg .= "Mensagem :\t$mensagem \n"; $msg .= "Veículo:\t<a href=http://www.meusite.com.br/adm/detalhes_do_veiculo.php?id=<? print $veiculo_cons;?><img src='gera_thumb.inc.php?imagem=<? print $foto1;?>&x=125' border='0' style='filter:'><br> <? print $modelo_v; ?><br> <? print $ano_v; ?>"; #<a href='detalhes_do_veiculo.php?id=$codigo'>Veiculo escolido.</a>\n"; $cabecalho = "From: Proposta - Mauricio Veículos";#Titulo da mensagem mail("seumail@pop.com.br", "Formulário de Contato", $msg, $cabecalho);#Aonde se encontra , deve estar o seumail@pop.com.br seu e-mail! echo "<center><h5>Muito Obrigado, $nome</h5></center>"; #Texto um de agradecimento echo "<font class='linko' align='center'><br><br><br><br><h5>Sua proposta foi enviada com SUCESSO !!!<br><br>Em breve entraremos em contato.</h5></td></tr></table>";#Texto dois de agradecimento //print $msg; } ?> </body> </html> Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Setembro 6, 2007 studdiox,se você estah dando continuidade a algum outro assunto poste o link do topico relacionado Compartilhar este post Link para o post Compartilhar em outros sites
studdiox 0 Denunciar post Postado Setembro 7, 2007 studdiox,se você estah dando continuidade a algum outro assunto poste o link do topico relacionadook o ultimo post aqui foi esse http://forum.imasters.com.br/index.php?act...&pid=862827 Compartilhar este post Link para o post Compartilhar em outros sites