Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/03/2017, 19:17
pablomaxit
 
Fecha de Ingreso: noviembre-2015
Mensajes: 26
Antigüedad: 8 años, 5 meses
Puntos: 0
Respuesta: Imprimir alert en PHP

Cita:
Iniciado por petit89 Ver Mensaje
pruebalo asi:
Código PHP:
Ver original
  1. $mail_status = mail($mail_to, $subject, $body_message, $headers);
  2.  
  3. if ($mail_status) {
  4.             if(isset($_POST['cf_name5'])){
  5.     $cf_name5 = $_POST['cf_name5'];
  6.     switch ($cf_name5) {
  7.         case '1':
  8.             printf("<script type='text/javascript'>alert('Lo estamos redireccionando'); </script>");
  9.             printf("<script> window.locationf='http://www.google.com';</script>");
  10.             break;
  11.         case '2':
  12.             header('Location: www.link2.com');
  13.             break;
  14.         default:
  15.             # code...
  16.            break;
  17.      }
  18.    }
  19. }
  20.  
  21. ?>
Si!!!! Así si, gracias Petit, solucionado!