Ver Mensaje Individual
  #6 (permalink)  
Antiguo 31/10/2007, 06:17
Avatar de Spookysama
Spookysama
 
Fecha de Ingreso: agosto-2007
Mensajes: 42
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: consulta variables por get

Era cantado q tenia q poner la funcion q dormida estoy !

Código PHP:
function makeUrl($file$get = array()) 
{
    foreach(
$_GET as $key => $id)
    {
        
$getresponse[$key] = $id;
    }
    foreach(
$get as $key => $id)
    {
        
$getresponse[$key] = $id;
    }
    
    
$querystring "";
    
    
$querystring http_build_query($getresponse);
        
    if(
$querystring!="")
    
$file .= '?' $querystring;
    
    return 
$file;