Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <meta charset="utf-8"/>
- <title>clientes</title>
- </head>
- <body>
- <?php
- $servername = "xxxx.hostgator.com.br";
- $database = "xxxx_amil";
- $username = "xxxx_cliente";
- $password = "xxxxxxxxxxxxxxx";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password, $database);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- echo "Connected successfully";
- $nome = $_POST ["pessoa_contato"];
- $email = $_POST ["email"];
- $cel = $_POST ["celular"];
- $tel = $_POST ["telefone"];
- $idade = $_POST ["idade1"]
- $plano = $_POST ["plano"];
- $comentario = $_POST ["comentario"];
- $mensagem = "<strong>nome: </strong>".$nome;
- $mensagem = "<strong>email: </strong>".$email;
- $mensagem = "<strong>cel: </strong>".$cel;
- $mensagem = "<strong>tel: </strong>".$tel;
- $mensagem = "<strong>idade: </strong>".$idade;
- $mensagem = "<strong>plano: </strong>".$plano;
- $mensagem = "<strong>comentario: </strong>".$comentario;
- $headers = "MIME-Version: 1.0\r\n";
- $headers .= "Content-type: text/html; charset=utf-8\r\n";
- $headers .= "From: " . $_POST["nome"] . "<" . $_POST["email"] . ">\r\n";
- $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
- $query = INSERT INTO clientes ( 'pessoa_contato', 'email' , 'celular' , 'telefone' , 'idade1' , 'plano' , 'comentario')
- VALUES ('$nome', '$email', '$cel', '$tel', '$idade', '$plano', '$comentario') ";
- mysql_query($query);
- echo "Seu cadastro foi realizado com sucesso!<br>Retornaremos em breve.";
- header("Location: www.vendasamilbrasil.com");
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement