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]
|