|
Posted by Steve on 11/07/07 21:19
"J.O. Aho" <user@example.net> wrote in message
news:5peer1Fqra8vU1@mid.individual.net...
> 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.
every host i've used not only supports short tags, they'll turn them on if
off...further, you can turn them on yourself via ini_set.
> 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.
you remember correctly...doesn't change the fact that that is a STUPID
decision.
Navigation:
[Reply to this message]
|