Fwd: Re: [PHP] passing variables in javascript
| From: | Nicholas W. Miller | Date: | Fri, 23 Feb 2001 07:02:18 +0000 |
| Subject: | Fwd: Re: [PHP] passing variables in javascript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41278@lists.php.net to get a copy of this message | ||
Hmmmm ... is there anyway to do this without requiring the page with the link to use PHP?You have to encode each part of the query string on the URL correctly: <a href="#" onClick="MM_openBrWindow('../email/popup.php?<?phpecho "title=" . urlencode("B2B Antitrust: Opening Moves in the Game") . "&url=" .urlencode("http://www.domain.com/biz/pubs.html#antitrust"); ?>', 'email','width=410,height=435')">Emailthis</a> Cheers Simon Garner