Código PHP:
Ver originalfunction deleteGet($url, $get){
$split = explode("?", $url); //split the url $getPart = $split[1]; //get the get part
$gets = explode("&", $getPart); //get all gets $newUrl = $split[0]."?"; //new url must be first part concat to character "?"
for($k=0;$k<sizeof($gets);$k++){ //we check al gets... $data = explode("=", $gets[$k]); //separating the var from the value if($data[0] != $get) //if the var is not eq. to the deleting get then...
$newUrl .= $gets[$k]; //concat to new url
if($k+1 < sizeof($gets)) //if is not the last element... $newUrl .= "&"; //add character "&"
}
return $newUrl; //we return the newUrl
}
Código PHP:
Ver original$nUrl = deleteGet("administracion.php?modAdministracion=administracio n&bajaCliente=bajaCliente", "bajaCliente");
No lo probé puede tener errores, pero espero se entienda que es lo que hice