Re: trying to code a simple hyperlink. Can anyone spot my error

From: Date: Wed, 15 Aug 2001 16:14:37 +0000
Subject: Re: trying to code a simple hyperlink. Can anyone spot my error
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-8882@lists.php.net to get a copy of this message
"Michael Rudel" <mru@suchtreffer.de> wrote in message news:005601c125a3$86f5fed0$2c00a8c0@suchtreffer.de... > From: bryan [mailto:bryaned@swbell.net] > Sent: Wednesday, August 15, 2001 5:57 PM > To: php-windows@lists.php.net > Subject: [PHP-WIN] trying to code a simple hyperlink. Can > > Can anyone spot my error? Return email will be greatly appreciated. > > echo "<A HREF= ""accessgranted.htm"" "; > > echo " >" ; > > echo"click here"; > > echo"</A>"; > echo "<A HREF= \"accessgranted.htm\" "; > echo '<A HREF= "accessgranted.htm" '; ... I find that using double-quotes for the string and single quotes within the string is the most flexible and readable, ie echo "<a href='accessgranted.htm'>click here</a>"; because that allows you to write variables inline, echo "<a href='access.php?var=$varlist'>with params</a>"; YMMV, of course.

« previous php.windows (#8882) next »