Ver Mensaje Individual
  #8 (permalink)  
Antiguo 25/05/2011, 12:46
Hyde
 
Fecha de Ingreso: octubre-2009
Mensajes: 38
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: ¿Como integrar reCaptcha en un formulario?

buah, llevo desde mi ultimo mensaje probándolo y no hay manera, leyendo por ahí me dicen que ese código no se puede copiar y pegar, que se tiene que hacer un embed.... ¿se os ocurre algo?.

He intentado mezclar phps pero no funciona...
Código PHP:
<?php
if(isset($_POST['submit']))
{
  if(empty(
$_SESSION['6_letters_code'] ) ||
    
strcasecmp($_SESSION['6_letters_code'], $_POST['6_letters_code']) != 0)
  {
      
//Note: the captcha code is compared case insensitively.
      //if you want case sensitive match, update the check above to
      // strcmp()
    
$errors .= "\n The captcha code does not match!";
  }
 
  if(empty(
$errors))
  {

$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

mail("[email protected]","Day Tours Barcelona Contact & Booking","Form data:

· Contact name:: " 
$_POST['field_1'] . 
· Phone number:: " 
$_POST['field_2'] . 
· Email:: " 
$_POST['field_3'] . 
· Numer of people: " 
$_POST['field_4'] . 
· Kind of service: : " 
$_POST['field_5'] . 
· Hour of pick up:: " 
$_POST['field_6'] . 
· Place of pick up:: " 
$_POST['field_7'] . 
· Explain your needs: : " 
$_POST['field_8'] . 



"
);

include(
"confirm.html");

Última edición por Hyde; 25/05/2011 a las 12:55