Reply to Re: what 's wrong of the syntax

Your name:

Reply:


Posted by Jerry Stuckle on 11/29/05 13:46

nick wrote:
> 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?

You don't need to.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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