Reply to Re: building url from variable

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация