Reply to Re: Help !!! a bit of javascript mixed with PHP

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация