|
Posted by Hilarion on 06/29/05 00:05
Domestos wrote:
> Cruddy code examples on the net... ported into my program and don't work...
> any idea's?
>
> echo '<a href="javascript: void(0)"
> onClick="window.open("club_info.php?clubcode="'.$code.'","mypage","width=300
> ,height=300,toolbar=0,resizable=0,scrollable=1");"><img src="'.$badge.'"
> width="50" height="50" border="0" ALT="'.$name.'">'</a>';
It almost works (just remove the "'" sign before "</a>").
The problem is that this PHP code generates invalid HTML.
The solution is:
1. Look at the HTML code it generates.
2. Fix the HTML code.
3. Copy and paste the correct HTML code into your PHP code.
If you are unable to do the 1 and 2, then try learning HTML before trying
to use PHP.
Where did you get the code from anyway?
Hilarion
[Back to original message]
|