Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/10/2011, 10:52
jjjericu
 
Fecha de Ingreso: agosto-2011
Ubicación: DF
Mensajes: 44
Antigüedad: 13 años, 6 meses
Puntos: 10
Respuesta: Redireccionar en php

solo te falto ponerle == en los IF

Código PHP:
Ver original
  1. <?php
  2. $prueba=$_REQUEST['nombre'];
  3.  
  4. if($prueba=="a")
  5. {
  6. header('Location: http://www.google.com/');
  7. exit();
  8. }
  9. else
  10. {
  11. if($prueba=="b")
  12. {
  13. header('Location: http://www.hotmail.com/');
  14. exit();
  15. }
  16. }
  17. ?>