Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/06/2007, 20:20
Avatar de demiurgo_daemon
demiurgo_daemon
 
Fecha de Ingreso: diciembre-2006
Ubicación: Querétaro
Mensajes: 184
Antigüedad: 17 años, 4 meses
Puntos: 2
Re: Parametros PHP

Hola,

para poder mandar variables por GET hay que insertarlas en el URL; te muestro tu código con los cambios en negritas para lograr esto:

Código:
function showLargePhoto(photoName, photoWidth, photoHeight, photoCaption)
{
photoTitle=Client;
if (photoCaption != "")
photoTitle=photoTitle + "%5-%5" + photoCaption
if (window.photo && !(window.photo.closed))
window.photo.close();
var URL=photoName;
var windowWidth=parseInt(photoWidth) + 5;
var windowHeight=parseInt(photoHeight) + 5;
var nTop;
var nLeft;
nTop = (screen.height - photoHeight) / 2
nLeft = (screen.width - photoWidth) / 2

photo=window.open(URL+"?Prod=e_learning.htm", "PhotoWindow", "width=" + windowWidth + ",height=" + windowHeight + ",toolbars=no,scrollbars,top="+nTop+",left="+nLeft );
}
Código HTML:
<a href="javascript:showLargePhoto('recomendar_1.php' ,'450','200');" class="productos">
Recomenda este Producto
</a> 
Ahora sí debes poder encontrar la variable $_GET['Prod']

saludos