Alternately, you can do it the lazy way like me: <a href="<?=$url?>"><?=$url?></a>
<? Echo $url; ?> Is the same as... <?=$url?> I also think that's a little easier to read. But that's my preference in style. -TG > -----Original Message----- > From: Greg Donald [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 16, 2004 6:02 PM > To: revDAVE > Cc: PHP > Subject: Re: [PHP] Novice PHP Variable/Link Question > > > On Thu, 16 Sep 2004 14:54:34 -0700, revDAVE > <[EMAIL PROTECTED]> wrote: > > How can I use a PHP variable as the destination for a link? > > > > <? $mylink = 'thispage.htm' > > > > <a href="thispage.htm">go here</a> > > > > With var...? How do I write this....? > > > > <a href="??? $mylink ???">go here</a> > > > <a href="<?php echo $url;?>"><?php echo $url;?></a> > > > -- > Greg Donald > http://gdconsultants.com/ > http://destiney.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php