Re: html and php
- From: Kim André Akerø <kimandre@xxxxxxxxxxxxxxxxxx>
- Date: 27 Nov 2006 13:49:14 GMT
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@xxxxxxxxxxxxxxxxxx
(remove NOSPAM to contact me directly)
.
- Follow-Ups:
- Re: html and php
- From: Gaga
- Re: html and php
- References:
- html and php
- From: Gaga
- Re: html and php
- From: J.O. Aho
- html and php
- Prev by Date: Re: html and php
- Next by Date: Re: pre-loader
- Previous by thread: Re: html and php
- Next by thread: Re: html and php
- Index(es):
Relevant Pages
|