Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
eae galera, estou com um problema que acredito que seja fácil de resolver, o problema é que não sei quase nada html e php. Estou fazendo um site que possui formulário de contato, qnd a pessoa clica em enviar, dispara uma mensagem que o contato foi enviado com sucesso, o problema que essa mensagem abre na mesma tela do formulário, eu queria que essa mensagem de confirmacao da mensagem chamasse um popup.
PARTE PHP
<!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$mensagem = "Nome: ".$_POST['nome']." \n";
$mensagem .= "Email: ".$_POST['email']." \n";
$mensagem .= "Assunto: ".$_POST['assunto']." \n";
$mensagem .= "Mensagem:". $_POST['mensagem'];
mail("contato@site.com.br", "Formulário Contato Via Site", $mensagem);
echo '<p><font face="Tahoma" color="##000000"><span style="font-size:11pt;"><b>Seu contato foi enviado com sucesso!.</b></span></font></p>';
echo '<font face="Tahoma" color="##000000"><span style="font-size:10pt;">Em breve
retornaremos sua mensagem.</span></font></p>';
?>
</body>
</html>
PARTE HTML
<!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>driveit - TI no rumo certo.</title>
<style type="text/css">
<!--
.style3 {font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
}
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
-->
</style>
</head>
<body>
<table width="778" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666">
<tr>
<td><table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#DBE6F5"><table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/contato_01.jpg" width="261" height="160" border="0" usemap="#Map" /></td>
<td><img src="images/contato_02.jpg" width="264" height="160" border="0" usemap="#Map2" /></td>
<td><img src="images/contato_03.jpg" width="253" height="160" /></td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28" bgcolor="#DBE6F5"><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="750" bgcolor="#DBE6F5"><form action="contato_confirmacao.php" method="post" name="form_contato" id="form_contato">
<table width="737" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="85" valign="top"><img src="images/nome.jpg" width="74" height="37" /><br /></td>
<td width="652"><label>
<input name="nome" type="text" id="nome" size="30" maxlength="30" />
<br />
<br />
</label></td>
</tr>
<tr>
<td valign="top"><img src="images/email.jpg" width="74" height="37" /></td>
<td><label>
<input name="email" type="text" id="email" size="30" maxlength="30" />
<br />
<br />
</label></td>
</tr>
<tr>
<td valign="top"><img src="images/assunto.jpg" width="74" height="37" /></td>
<td><label>
<input name="assunto" type="text" id="assunto" size="30" maxlength="30" />
<br />
<br />
</label></td>
</tr>
<tr>
<td valign="top"><img src="images/mensagem.jpg" width="74" height="37" /></td>
<td><label>
<textarea name="mensagem" cols="50" rows="5"id="mensagem"></textarea>
<br />
<br />
<input type="submit" name="Submit" value="Enviar" />
<input type="reset" name="Submit2" value="Limpar" />
<br />
<br />
</label></td>
</tr>
</table>
</form></td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/empresa_09.jpg" width="261" height="30" /></td>
<td><img src="images/empresa_10.jpg" width="313" height="30" /></td>
<td><img src="images/empresa_11.jpg" width="204" height="30" /></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="26,137,80,149" href="empresa.html" />
<area shape="rect" coords="88,137,174,150" href="investimento.html" />
<area shape="rect" coords="182,137,269,149" href="infra.html" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="-5,137,25,149" href="infra.html" />
<area shape="rect" coords="34,137,83,149" href="projeto.html" />
<area shape="rect" coords="91,137,142,149" href="suporte.html" />
<area shape="rect" coords="151,137,234,150" href="treinamento.html" />
</map></body>
</html>Carregando comentários...