Re: passing variables in javascript

From: Date: Fri, 23 Feb 2001 07:01:14 +0000
Subject: Re: passing variables in javascript
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-6904@lists.php.net to get a copy of this message
Whooops ... sorry about that last post ... wrong list! n
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
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#6904) next »