Re: Re: trying to output a hyperlink
| From: | Michal Migurski | Date: | Sun, 11 Apr 2004 15:48:04 +0000 |
| Subject: | Re: Re: trying to output a hyperlink | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183124@lists.php.net to get a copy of this message | ||
>Although, it could be shortened even more, to:
>
><td><?php $link = "<a href=\"".$row[2]."\">Click
>here</a>";
> echo $link;?></td>
Or still more, to:
<td><a href="<?= $row[2] ?>">Click Here</a></td>
...which starts to approach the original legibility of HTML for me, and
the syntax hilighting in BBEdit is corrrect. I've been tending to use
constructions like that instead of templating classes like smarty or
printf constructiions, and I've been very pleased with em.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html