Re: passing variables in javascript
| From: | Nicholas W. Miller | Date: | Fri, 23 Feb 2001 06:58:36 +0000 |
| Subject: | Re: passing variables in javascript | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6903@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?<?php
echo "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