示例#1
0

			<input type="text" name="nome" size="45" placeholder="NOME" /><br><br>

			<input type="text" name="email" size="45" placeholder="EMAIL" /><br><br>

			<input type="text" name="assunto" size="45" placeholder="ASSUNTO" /><br><br>

			<textarea name="mensagem" rows="10" cols="60" wrap="virtual" placeholder="MENSAGEM"></textarea><br><br>
			<input type="hidden" name="envia_msg" value="envia_msg" />
			<input type="submit" value="Enviar Email" /> <input type="reset" value=" Limpar " />

		</form>
		<?php 
if (isset($_POST['envia_msg'])) {
    contato($_SESSION['nome'], $_SESSION['email'], $_SESSION['assunto'], $_SESSION['mensagem']);
}
?>
    </div>
    <div class="map">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3644.7359037335136!2d-46.414400185013825!3d-24.00510128446442!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x94ce1db2e586da8d%3A0x271ae3e10bdc671e!2sFatec!5e0!3m2!1spt-BR!2sbr!4v1445904273520" width="350" height="290" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="border:0" allowfullscreen></iframe>
</small></div>
    <div class="clear"></div>
</div>
</div>
	<div class="clear"> </div>
    </div>
<?php 
include 'footer.php';
?>
示例#2
0
<?php

if (isset($_POST['nome'])) {
    $body = '<div style="display:table;">' . $_POST['mensagem'] . '</div>';
    contato($_POST['nome'], $_POST['telefone'], $_POST['email'], 'CONTATO WEBSITES', $body, '', '*****@*****.**');
    $body = '<div style="display:table;">Atenciosamente,</div>';
    $body = $body . '<div style="display:table;">' . $tit . '</div>';
    $body = $body . '<div style="display:table;"> Tel: ' . $tel_1 . '</div>';
    $body = $body . '<div style="display:table;">-</div>';
    $body = $body . '<div style="display:table;">-</div>';
    $body = $body . '<div style="display:table;">-</div>';
    $body = $body . '<div style="display:table;">Acesse:</div>';
    $body = $body . '<div style="display:table;">' . $url_w . '</div>';
    echo "<script language=\"JavaScript\">alert('mensagem enviada com sucesso');</script>";
    echo '<script> window.location="' . $url_w . 'contato";</script>';
} else {
    $msg = '';
}
?>
 
<form name="formular" id="formular" method="post" action="" onsubmit="return valida();">
						<fieldset>
							<p id="formstatus" />
							<div class="row">
								<div class="span3">
								
									<p>
										<label for="name">Seu nome: <span class="required">*</span></label>
										<input class="text" name="nome" placeholder="Digite seu nome" value="" />
									</p>
									<p>
示例#3
0
<?php

if (isset($_POST['nome'])) {
    $body = '<div style="display:table;">' . $_POST['InputMessage'] . '</div>';
    contato($_POST['InputName'], $_POST['InputEmail'], 'PEACELABS', $body, '', '*****@*****.**');
    $body = '<div style="display:table;">Atenciosamente,</div>';
    $body = $body . '<div style="display:table;">' . $tit . '</div>';
    $body = $body . '<div style="display:table;"> Tel: ' . $tel_1 . '</div>';
    $body = $body . '<div style="display:table;">-</div>';
    $body = $body . '<div style="display:table;">-</div>';
    $body = $body . '<div style="display:table;">-</div>';
    $body = $body . '<div style="display:table;">Acesse:</div>';
    $body = $body . '<div style="display:table;">' . $url_w . '</div>';
    echo "<script language=\"JavaScript\">alert('mensagem enviada com sucesso');</script>";
    echo '<script> window.location="' . $url_w . 'contato";</script>';
} else {
    $msg = '';
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>PeaceLabs - Open Brazil</title>
    <meta name="generator" content="Bootply" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <link rel="stylesheet/less" type="text/css" href="/assets/less/style.less" />
    <script src="/assets/js/less.js" type="text/javascript"></script>