Ver Mensaje Individual
  #5 (permalink)  
Antiguo 15/05/2009, 15:38
[email protected]
 
Fecha de Ingreso: octubre-2005
Mensajes: 405
Antigüedad: 18 años, 5 meses
Puntos: 1
Respuesta: Ventana flotante de PHP

Ya consegui abrir la ventana, haciendo referencia a pagina del include:


Código PHP:
<?
$sql
="select * from servicio where f_solicitado BETWEEN '$fecha1' and '$fecha2'
order by folio desc"
;                                                          
$res=mysql_query($sql,$conexion) or die(mysql_error());                        
while(
$reg=mysql_fetch_array($res))                                            
{                                                                              
    
$folio=$reg['folio'];                                                       
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<title>Documento sin t&iacute;tulo</title> 
<style type="text/css">
<!--
#capa {
    font-family: "Trebuchet MS";
    font-size: 10px;
    color: #000000;
    background-color: #FFFFCC;
    border: 1px solid #003399;
    position: absolute;
    visibility: hidden;
    z-index: 1;
    height: 400px;
    width: 400px;
    float: right;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
</head> 
<body>
<div class="capa" id="capa"><? include("respuestas.php"); ?></div>
<a href="#" onMouseOver="MM_showHideLayers('capa','','show')" onMouseOut="MM_showHideLayers('capa','','hide')">Mostrar respuestas</a>
</body> 
</html>
Pero la pagina original es PHP y obtengo un folio para ver las respuestas.
¿Como paso este folio a la pagina respuestas.php que esta en el include?