<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Documento sem título</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="../bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
<link href="css/contato.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php 
if ($_POST){
   $captcha_respuesta = recaptcha_check_answer ($captcha_privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
   if ($captcha_respuesta->is_valid) {
      //todo correcto
      //hacemos lo que se deba hacer una vez recibido el formulario válido
      echo "Todo correcto!";
   }else{
      //El código de validación de la imagen está mal escrito.
      echo "Has escrito mal el texto";
      $error_captcha = $captcha_respuesta->error;
   }
}
?>
<div id="conteudo">
  <form name="form1" method="post" action="envia.php">
 <div class="input-group">
  <span class="input-group-addon" id="sizing-addon2"><i class="glyphicon glyphicon-user"></i></span>
  <input name="nome" class="form-control required" type="text" id="nome" placeholder="Nome" aria-describedby="sizing-addon2" required>
</div><br>
  
<div class="input-group">
  <span class="input-group-addon" id="sizing-addon2"><i class="glyphicon glyphicon-envelope"></i></span>
  <input name="email" class="form-control required" type="email"  id="email" placeholder="Email" aria-describedby="sizing-addon2" required>
</div><br>
  
<div class="input-group">
  <span class="input-group-addon" id="sizing-addon2"><i class="glyphicon glyphicon-home"></i></span>
  <input name="cidade"  class="form-control required" type="text"  id="cidade" placeholder="Cidade" aria-describedby="sizing-addon2" required>
</div><br>
  
<div class="input-group">
  <span class="input-group-addon" id="sizing-addon2"><i class="glyphicon glyphicon-list"></i></span>
  <input name="estado" class="form-control required" type="text"  placeholder="Estado" aria-describedby="sizing-addon2" required>
</div><br>
  
<div class="input-group">
  <span class="input-group-addon" id="sizing-addon2"><i class="glyphicon glyphicon-asterisk"></i></span>
  <input name="assunto" class="form-control required" type="text"  placeholder="Assunto" aria-describedby="sizing-addon2" required>
</div><br>
  
<div class="input-group">
  <span class="input-group-addon" id="sizing-addon2"><i class="glyphicon glyphicon-pencil"></i></span>
  <textarea rows="5" name="comentarios" class="form-control" placeholder="Comentários" aria-describedby="sizing-addon2" required></textarea>
</div><br>
<div class="g-recaptcha" data-sitekey="6LeoNxETAAAAAOyvfhstPQ5m7lNCTpwZ7Wbx0PR7"></div>
<p></p>
  <input name="botao" type="submit" value="Enviar">
</form>
</div>
<script src='https://www.google.com/recaptcha/api.js'></script>
</body>
</html>