Posted by Gaga on 11/27/06 15:38
Sorry to be such pain in the a** but i have small problem when i want to use
last example with img src.
It's all the same but now i want to use image as link...
---------------------------------------------------------
"Kim Andrι Akerψ" <kimandre@NOSPAMbetadome.com> wrote in message
news:4t08mqFvvsi5U1@mid.individual.net...
> J.O. Aho wrote:
>
> > Gaga wrote:
> > > echo "<a href='user_edit.php?id={$row_dbUsers['id']}'>edit</a>";
> > > If i want to add color or other effect to this link i get all the
> > > time parse error.
> > > I have tryed with normal font color, size, mouseover but all the
> > > time... parse error.
> > >
> > >
> >
> > echo "<a href=\"user_edit.php?id={$row_dbUsers['id']}\"
> > style=\"color: green; font-size: larger;\"
> > mouseover=\"javascript_function(); return true;\">edit</a>"
> >
> > or
> >
> > echo <<<EOF
> > <a href="user_edit.php?id=
> > EOF;
> > echo $row_dbUsers['id'];
> > echo <<<EOF
> > " style="color: green; font-size: larger;"
> > mouseover="javascript_function(); return true;">edit</a> EOF;
>
> You could also present the second version like this:
>
> echo <<<EOF
> <a href="user_edit.php?id=${row_dbUsers['id']}" style="color: green;
> font-size: larger;" mouseover="javascript_function(); return
> true;">edit</a>
> EOF;
>
> --
> Kim Andrι Akerψ
> - kimandre@NOSPAMbetadome.com
> (remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|