Re: JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o)
| From: | Chris Lee | Date: | Wed, 19 Dec 2001 22:20:07 +0000 |
| Subject: | Re: JavaScript & php question - mainly JS though so slightly OT but hep needed!!! :o) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78255@lists.php.net to get a copy of this message | ||
thats exactly how you do it.
foreach( $array as $pos => $val )
echo "
<a href='javascript:windowpopup('page.php?id=$pos')'>$val
</a><br>
";
--
Chris Lee
lee@mediawaveonline.com
"Martin Hughes" <mth100@orange.net> wrote in message
news:20011218225121.91283.qmail@pb1.pair.com...
> How could I write the function windowPopup(XX) where XX is a variable that
> can change from link to link, for a popup info window to load a php file
> with the variable XX in the url?
>
> So the link would look like:
> <a href="javascript:windowPopup(XX);">Link Text</a>
>
> and I want that link to open the page info.php?patch=XX in a new popup
> window
>
> Do I do it something like this, or is there a faster/better way??
>
> Cheers & Merry X-Mas!
>
> Martin
>
>