|
Posted by J.O. Aho on 11/07/07 18:35
Jerry Stuckle wrote:
> Just like any other PHP statements - you need it within <?php and ?>. In
> this case you want to display the value, so you echo it, i.e.
>
> <a href="http://www.widgets.com/<?php echo $var;?>">click here </a>
>
> Also,
>
> <?=$var?>
>
> is not good. It depends on short tags being on, and it isn't in a lot
> (most?) hosts nowadays. The echo above works on any system.
If I don't remember the log from the php6 "startup meeting", short tags
on their way out from php, so yet another reason why use the full tags.
--
//Aho
Navigation:
[Reply to this message]
|