On Wed, 21 Jul 2004 17:45:35 -0400, Karl-Heinz Schulz <[EMAIL PROTECTED]> wrote: > The following codes open the links perfect. > > print($press[1]." <a target=_blank href=..\PDF/$press[3] > class=\"press_links\">".strip_tags(html_decode($press[2]))."</a><br>"); > > When I open it in Firefox it will try to open the following link instead. > When I will remove "..\" it will try to open the following link in IE. Is > there a way which works on both? > > /publication/..\PDF/whatever.pdf > > When I will remove "..\" it will try to open the following link in IE. > > /publication/.PDF/whatever.pdf > > Is there a way that works on both? >
1) Switch that backslash to a forward slash. All paths on the web use forward slashes. Actually, \PDF may come out as PDF in the browser. 2) Put quotes around your attribute values! echo '<a target="_blank" href="../PDF/blah.pdf">'; -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php