RE: [PHP] function that will print the url for embedded links

From: Date: Wed, 01 Aug 2001 16:13:09 +0000
Subject: RE: [PHP] function that will print the url for embedded links
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60688@lists.php.net to get a copy of this message
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: sgibbs@vt.globalhealth.org [mailto:sgibbs@vt.globalhealth.org] >Sent: Wednesday, August 01, 2001 11:26 AM >To: php-general@lists.php.net >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

« previous php.general (#60688) next »