Ver Mensaje Individual
  #10 (permalink)  
Antiguo 07/11/2012, 09:47
Avatar de CoriaWeb
CoriaWeb
 
Fecha de Ingreso: septiembre-2012
Ubicación: Coria del Río - Sevilla
Mensajes: 1.795
Antigüedad: 11 años, 7 meses
Puntos: 130
Respuesta: Envio de Variable por URL utilizando Header

usa esto haber si te sirve:

Código PHP:
Ver original
  1. <?
  2. include "../conexion/conexion.php";
  3.  
  4. $sql=mysql_query("select id, ced_rif,nombre from clientes where ced_rif=".$_POST['ced_rif']."",$idconn);
  5.  
  6.  
  7. $total=mysql_num_rows($sql);
  8.  
  9.  if($total>0)  
  10. {
  11.     $resultado=mysql_fetch_array($sql);
  12.     //$id_cliente=$resultado['id'];
  13.     header("location:factura_activa.php?id=".$resultado['id']);
  14.     exit;
  15. }
  16. else
  17. {
  18.     header("location:form_nuevo_cliente.php");
  19.     exit;
  20. }
  21. mysql_close($idconn);
  22.  
  23.  
  24. ?>
__________________
Hosting de Calidad
Servidores Dedicados Administrados
CoriaWeb.hosting