Re: Re: [PHP] passing variables in javascript

From: Date: Fri, 23 Feb 2001 07:04:59 +0000
Subject: Re: Re: [PHP] passing variables in javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41279@lists.php.net to get a copy of this message
From: "Nicholas W. Miller" <nick@webzeit.com> > > Hmmmm ... is there anyway to do this without requiring the page > >with the link to use PHP? > > Well if the string you're going to urlencode() is always going to be the same, then just run it through once, grab the encoded version and hard-code it :) > >> > >>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"¤4”+‰x#<Ò > >>_uÖ); > >>?>', > >>'email','width=410,height=435')">Emailthis</a> > >> > >>

« previous php.general (#41279) next »