Reply to Re: IE Problem : Dynamic Javascript in PHP constructor

Your name:

Reply:


Posted by Alan Little on 05/30/06 20:30

Carved in mystic runes upon the very living rock, the last words of
<pulkit.gaur@gmail.com> of comp.lang.php make plain:

> I have a PHP class.
> In the constructor method i use the following code :
>
> constructor func .......
> {
> echo "<script type=\"text/javascript\">";
> echo "alert('hi');
> echo "</script>";
>
> }

If that's a copy-and-paste, you're missing a " at the end of your second
echo statement. Other than that, it works fine for me.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/

[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

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