You are here: Re: what 's wrong of the syntax « PHP Programming Language « IT news, forums, messages
Re: what 's wrong of the syntax

Posted by nick on 11/29/05 08:41

VS wrote:
> nick wrote:
>
>> <html>
>> <?
>> $code=0001;
>> $name="hello";
>> <a herf="../"+$code+"/profile.htm" title=$name target="_top">$name</a>
>> ?>
>> </html>
>>
>>
>> i suppose the output is a hyper link , but why i can do that?
>> thanks!
>
>
> looks like you need to use echo (or one of the other PHP output
> functions) with something like:
>
> echo "<a href=\"../" .$code. "/profile.htm\" title=\"" .$name.
> "\" target=\"_top\">" .$name. "</a>\n";
>
$code is integer in there, so how to convert it into string?

 

Navigation:

[Reply to this 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

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