Tema: Alert en php
Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/05/2012, 16:15
Curda
 
Fecha de Ingreso: septiembre-2009
Ubicación: Queretaro
Mensajes: 51
Antigüedad: 14 años, 6 meses
Puntos: 2
Respuesta: Alert en php

Tambien pudo ser asi y este contiene mas opciones para el SEO:

Código PHP &amp:
Ver original
  1. <?php
  2. require_once("sesiones.php");
  3. require_once("datosconexion.php");
  4. require_once("conectar.php");
  5.  
  6. $sesion = new sesion();
  7. $dato = $_SESSION['usuario'];
  8.  
  9. $idpre = rand(0, 9999);
  10. $idres = rand(0, 9999);
  11.  
  12. $pregunta = filter_input(INPUT_POST, "pregunta");
  13. $respuesta = filter_input(INPUT_POST, "respuesta");
  14.  
  15. $querypreguntas = "insert into tabla values ($idpre,'$pregunta','$dato');";
  16. $queryrespuestas = "insert into tabla2 values ($idres,'$respuesta','$pregunta','$dato');";
  17.  
  18. $resultadoP = mysql_query($querypreguntas, $conexion) or die(mysql_error());
  19. $resultadoR = mysql_query($queryrespuestas, $conexion) or die(mysql_error());
  20.  
  21. ?>
  22. <html>
  23. <head>
  24. <title>Titulo para el SEO</title>
  25. <meta http-equiv="refresh" content="0;URL=bienvenido.php">
  26. </head>
  27. <body>
  28. <script languaje='javascript'>alert('Registro Exitoso');</script>
  29. </body>
  30. </html>

saludos ;)