you would have to pass a page identifier when its the printer friendly page,
then just parse for it.

quoting your paragraph...

-------------------------------------
...on a dynamically created webpage, I have a link called: <?PHP
        if($page=='Printer Friendly'){
                # this is the additional variable you wold pass to tag
                # as a printer friendly page
                echo 'Contact (http://www.web.com/contact.html)';
        }else{
                # regular page
                echo '<a href="http://www.web.com/contact.html";>Contact</a>';
        }
?>.
-------------------------------------
replace the URL and "Contact" with variables as necessary if they are
dynamically assigned.

if that doesn't sound like what you were looking for, send the file as an
example so it can be viewed in context.

Dave

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 01, 2001 11:26 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP] function that will print the url for embedded links
>
>
>I'm looking for a way to have a url for a link "explode" into the actual url
>address.  So for example, on a dynamically created webpage, I have a link
>called: Contact.
>
>When someone chooses to view the "printer friendly" version of this page, I
>want the link on the the printer-friendly page to change to the following:
>"Contact (http://www.web.com/contact.html)".
>
>Any ideas of how to automate this process?
>
>Thank you, Shawna


-- 
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