Ver Mensaje Individual
  #12 (permalink)  
Antiguo 16/02/2012, 17:33
ocp001a
Colaborador
 
Fecha de Ingreso: mayo-2008
Ubicación: $MX['VZ']['Xalapa']
Mensajes: 3.005
Antigüedad: 16 años
Puntos: 528
Respuesta: Ventana secundaria

¿Entonces tu duda es sobre cómo imprimir el enlace con php?
De ser así sólo necesitas conocer como se manejan las comillas simples y dobles en php.

Por ejemplo, esto
<a href="/index.htm" target="_blank" onClick="window.open(this.href, this.target, 'width=300,height=400'); return false;">Lanzar correctamente</a>

se puede imprimir así:

echo "<a href=\"/index.htm\" target=\"_blank\" onClick=\"window.open(this.href, this.target, 'width=300,height=400'); return false;\">Lanzar correctamente</a>";

En tu caso concreto
Código PHP:
Ver original
  1. echo "<a href=\"popup2.php?ID_articulo=$row[ID_dos]\" target=\"_blank\" onClick=\"window.open(this.href, this.target, 'width=300,height=400'); return false;\">Lanzar correctamente</a>";

o bien

Código PHP:
Ver original
  1. echo "<a href=\"popup2.php?ID_articulo=".$row['ID_dos']."\" target=\"_blank\" onClick=\"window.open(this.href, this.target, 'width=300,height=400'); return false;\">Lanzar correctamente</a>";

o bien

Código PHP:
Ver original
  1. echo '<a href="popup2.php?ID_articulo='.$row['ID_dos'].'" target="_blank" onClick="window.open(this.href, this.target, \'width=300,height=400\'); return false;">Lanzar correctamente</a>';

Hay muchas maneras, ésta última sería teóricamente la "más correcta"