Click to See Complete Forum and Search --> : [RESOLVED] parsing variable to a popup window not working


Ali_baba
05-11-2007, 03:44 PM
Hello all,

I am trying to open a window with some necessay information linked with the data in the previous window. Here is the code of report.php

<td align = "center">&nbsp;&nbsp;
<a href="javascript:popUp(text.php?Report=<?echo $record?>)" target = "report">Link</a>
&nbsp;&nbsp;</td>

What I get in the location (address) bar of popup:

javascript:popUp(text.php?Report=1)


I must be missing something. Could somebody please help me?

Piranha
05-11-2007, 03:54 PM
You don't need javascript if all you want to do it get the result in a new window.


<td align = "center">&nbsp;&nbsp;
<a href="text.php?Report=<?echo $record?>" target = "report">Link</a>
&nbsp;&nbsp;</td>

Ali_baba
05-11-2007, 04:11 PM
thanks a lot. I must be smoking crack :)