Re: what 's wrong of the syntax



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@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: Displaying echos when running a script file
    ... Nick Steinmetz wrote: ... > When I run a script file I've written, the command window outputs ... > I tried playing with the function called "echo" (i.e. including the ...
    (comp.soft-sys.matlab)
  • Re: Delphi 8 common quality
    ... > Nick hopes that by re-stating this he'll make enough of an echo so ... People almost always believe the truth, ... some adhere to falsehood despite blatany evidence to the ... Nick Hodges -- TeamB ...
    (borland.public.delphi.non-technical)
  • Re: Sharing
    ... You sure have some gorgeous photos, Echo. ... Thank you for sharing them with ... Nick will get back to you for lessons as soon as we return from ... Sarah, Steve and Nick ...
    (alt.support.stop-smoking)
  • Re: shell script help needed
    ... Dave Calhoun wrote: ... the idea is ok but it doesn't work because the syntax is all wrong. ... Nick H ...
    (comp.unix.aix)