Re: what 's wrong of the syntax
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 06:46:33 -0500
nick wrote:
VS wrote:
$code is integer in there, so how to convert it into string?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";
You don't need to.
-- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@xxxxxxxxxxxxx ================== .
- Follow-Ups:
- Re: what 's wrong of the syntax
- From: VS
- Re: what 's wrong of the syntax
- References:
- Re: what 's wrong of the syntax
- From: nick
- Re: what 's wrong of the syntax
- Prev by Date: Re: Changes to php.ini not being read through
- Next by Date: Re: Sorting an Array - CSORT
- Previous by thread: Re: what 's wrong of the syntax
- Next by thread: Re: what 's wrong of the syntax
- Index(es):
Relevant Pages
|