From: "Nicholas W. Miller" <[EMAIL PROTECTED]>

> I have a text link that is coded to open a PHP file in a popup window:
>
> <a
>
href="#"onClick="MM_openBrWindow('../email/popup.php?title=B2B+Antitrust:+Op
ening+Moves+in+the+Game&url=http://www.domain.com/biz/pubs.html#antitrust','
email','width=410,height=435')">Emailthis
> article</a>
>
> For some reason the $url variables cuts off the anchor, so I only get
this:
>
> $url = http://www.dttgfsi.com/ebiz/pubs_eviews.html
>
> I have tried escaping it (\#antitrust), but the doesn't work.
>
> Any suggestions would be appreciated ...
>
> Nick
>


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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to