Re: IE Problem : Dynamic Javascript in PHP constructor



Carved in mystic runes upon the very living rock, the last words of
<pulkit.gaur@xxxxxxxxx> 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/
.